Enterprise Library for Silverlight - Interception demo
- Posted: Mar 21, 2011 at 5:51 PM
- 6,641 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…”
Interception has been available as a Unity container extension for a while. However, it was not available on Silverlight. Until now.
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.
See also: sample code used in the screencast, other Silverlight Integration Pack demos.
Your feedback is invited!
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Unity Interception and Policy Injection Application Block are now available via NuGet:
Remove this comment
Remove this thread
close