ASP.NET Hosting

Interception methods

After my simple AOP sample, here is the source code of a sample presenting three interception methods:

  • using a transparent proxy
  • using a context-bound object
  • using eXtensible C#

Without surprise code injection is the lightest (XC#). Context-bound objects are slightly slower than proxies (~ +11,5% on average).

In order to compile the application, you'll need XC#.

Update: I have updated the source code for the latest release of XC#.
Update: links for documentation:

No Comments