Ninject Interception at Namespace level?

Go To StackoverFlow.com

0

Is their a way to set up interception with the Ninject.Extensions.Interception extension so it applies it to all classes in a Namespace or assembly?

Currenlty i have to do it per class like this

  Kernel.Bind<MyClass>().ToSelf().Intercept().With<ILoggerAspect>();
2012-04-04 00:17
by Ryan Burnham


1

Ninject.Extensions.Conventions should take care of this (though it doesn't influence any explicit Bindings you may have not generated via the conventions module).

See the Ninject.Extensions.Conventions wiki.

2012-04-04 07:55
by Ruben Bartelink
Ads