示例#1
0
 public static void RegisterAssembly()
 {
     _resolver = new NinjectHttpResolver(Assembly.GetExecutingAssembly());
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }
示例#2
0
 public static void RegisterModules(INinjectModule[] modules)
 {
     _resolver = new NinjectHttpResolver(modules);
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }