Exemple #1
0
 public static void RegisterAssembly()
 {
     _resolver = new NinjectHttpResolver(Assembly.GetExecutingAssembly());
     //This is where the actual hookup to the Web API Pipeline is done.
     DependencyResolver.SetResolver(_resolver);
 }
Exemple #2
0
 public static void RegisterAssembly()
 {
     _resolver = new NinjectHttpResolver(Assembly.GetExecutingAssembly());
     //This is where the actual hookup to the Web API Pipeline is done.
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }
Exemple #3
0
 //Register Ninject Modules
 public static void RegisterModules(NinjectModule[] modules)
 {
     _resolver = new NinjectHttpResolver(modules);
     DependencyResolver.SetResolver(_resolver);
 }
Exemple #4
0
 //Register Ninject Modules
 public static void RegisterModules(NinjectModule[] modules)
 {
     _resolver = new NinjectHttpResolver(modules);
     GlobalConfiguration.Configuration.DependencyResolver = _resolver;
 }