Blog Post

Enterprise Library for Silverlight - Interception demo

Download this episode

Download Video


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!



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.