Beispiel #1
0
        protected void Application_Start()
        {
            NinjectConfig.Config();
            GlobalHost.DependencyResolver = new SignalRResolver();
            ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory());

            AreaRegistration.RegisterAllAreas();

            WebSecurityInitializer.Instance.EnsureInitialize();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
        }