SHARE
TWEET

Untitled

a guest Jun 17th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static NinjectAopConfiguration()
  2.     {
  3.         _container = new NinjectAspectContainer();
  4.     }
  5.     public static void NinjectAopConfigure()
  6.     {
  7.         SnapConfiguration.For(_container).Configure(c =>
  8.         {
  9.             c.IncludeNamespace("MyNamespace.Model.*");
  10.             c.Bind<ExceptionLoggingInterceptor>().To<ExceptionLoggingAttribute>();
  11.         });
  12.     }
  13. }
  14.      
  15. static NinjectAopConfiguration()
  16.     {
  17.         _container = new NinjectAspectContainer();
  18.     }
  19.     public static void NinjectAopConfigure()
  20.     {
  21.         SnapConfiguration.For(_container).Configure(c =>
  22.         {
  23.             c.IncludeNamespace("MyNamespace.Model.*");
  24.             c.Bind<ExceptionLoggingInterceptor>().To<ExceptionLoggingAttribute>();
  25.         });
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top