Exemple #1
0
        public static void RegisterAssembly()
        {
            _resolver = new NinjectResolver(Assembly.GetExecutingAssembly());

            //This is where the actual hookup to the MVC Pipeline is done.
            DependencyResolver.SetResolver(_resolver);
        }
Exemple #2
0
 //Register Ninject Modules
 public static void RegisterModules(NinjectModule[] modules)
 {
     _resolver = new NinjectResolver(modules);
     DependencyResolver.SetResolver(_resolver);
 }