Enterprise Library for Silverlight - Interception demo
- Posted: Mar 21, 2011 at 5:51 PM
- 7,677 Views
- 1 Comment
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this demo, we discuss interception as a code modularization technique for dealing with cross-cutting concerns. We contrast 2 types of interception - instance and type interception.
Using the newly implemented interception support provided by the Silverlight Integration Pack, we show a virtual method interceptor in action (which can intercept any methods declared virtual on your type). We also show the nuts and bolts of implementing custom interception behaviors and chaining them into a pipeline (similar to the Chain-of-Responsibility design pattern).
Though the demo targets Silverlight, it can also be helpful for those learning how to take advantage of Unity Interception in their desktop CLR apps.
Your feedback is invited!