Enterprise Library for Silverlight - Interception demo
- Posted: Mar 21, 2011 at 5:51 PM
- 5,252 Views
- 1 Comment
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- Mid Quality WMV (Lo-band, Mobile)
- MP3 (Audio only)
- High Quality MP4 (iPad, PC)
- MP4 (iPod, Zune HD)
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 Closed
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
Unity Interception and Policy Injection Application Block are now available via NuGet:
Remove this comment
Remove this thread
close