Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement