Inheritance: SignalR.Infrastructure.DefaultDependencyResolver
Ejemplo n.º 1
0
 /// <summary>
 /// Starts the application
 /// </summary>
 public static void Start()
 {
     DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule));
     DynamicModuleUtility.RegisterModule(typeof(NinjectHttpModule));
     bootstrapper.Initialize(CreateKernel);
     var resolver = new NinjectDependencyResolver(bootstrapper.Kernel);
     RouteTable.Routes.MapHubs(resolver);
 }
Ejemplo n.º 2
0
        public CentralDispatch()
        {
            _enviromentProvider = new EnviromentProvider();

            logger.Debug("Initializing Kernel:");
            Kernel = new StandardKernel();

            var resolver = new NinjectDependencyResolver(Kernel);
            AspNetHost.SetResolver(resolver);

            InitDatabase();
            InitReporting();

            InitQuality();
            InitExternalNotifications();
            InitIndexers();
            InitJobs();
        }