Пример #1
0
 public static void RegisterAssembly()
 {
     _resolver = new NinjectHttpResolver(Assembly.GetExecutingAssembly());
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }
Пример #2
0
 //Register Ninject Modules
 public static void RegisterModules(NinjectModule[] modules)
 {
     _resolver = new NinjectHttpResolver(modules);
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }