Search code examples
aopninject-2

Can you make use of AOP with Ninject 2?


I'm trying to find examples on the web of how to use AOP via Ninject. Can someone confirm if AOP is available in Ninject 2 without using external libraries (i.e. Castle Windsor?).

If it can be done, could you post a link to resources that would help me get started?


Solution

  • Yes, use the Interception extension:

    https://github.com/ninject/ninject.extensions.interception

    http://www.google.ch/search?client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&channel=s&hl=de&source=hp&biw=1330&bih=813&q=Ninject.Extensions.Interception&btnG=Google-Suche