Skip to main content

Home/ General Development In DotNet/ Group items tagged ninject

Rss Feed Group items tagged

Jacques Bosch

Ninject AOP using Castle's DynamicProxy2 - SimpleInterceptor - InterceptAttribute - 0 views

  •  
    "I couldn't find an example of doing AOP Method Interception using Ninject and Castle's DynamicProxy2 or LinFu DynamicProxy, so I consulted Ninject's Unit Tests and created my own sample. In the sample shown below, I will be using Castle's DynamicProxy2, but quite honestly I think you can use Linfu DynamicProxy by just swapping out the DynamicProxy2Module for the LinfuModule in the code below as well as referencing the Ninject.Integration.LinFu Assembly as opposed to the Ninject.Integration.DynamicProxy2 Assembly. By the way, there are some really good CodeProject article's on Linfu that I mentioned on PnPGuidance: LinFu Articles on CodeProject Well-Worth Reading."
1 - 1 of 1
Showing 20 items per page