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>();
Ryan Burnham
  • 2,619
  • 3
  • 27
  • 43

1 Answers1

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.

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249