コード例 #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ExampleLayoutsRouteConfig.RegisterRoutes(RouteTable.Routes);
 }
コード例 #2
0
 protected override void OnApplicationStarted()
 {
     base.OnApplicationStarted();
     AreaRegistration.RegisterAllAreas();
     FluentSecurityConfig.Configure();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BootstrapBundleConfig.RegisterBundles(BundleTable.Bundles);
     ExampleLayoutsRouteConfig.RegisterRoutes(RouteTable.Routes);
     AutoMapperConfiguration.Configure();
 }
コード例 #3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
            BootstrapSupport.BootstrapBundleConfig.RegisterBundles(System.Web.Optimization.BundleTable.Bundles);
            ExampleLayoutsRouteConfig.RegisterRoutes(RouteTable.Routes);
        }
コード例 #4
0
ファイル: Global.asax.cs プロジェクト: ciker/201509LoginDemo
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
            Bootstrapper.Start();
            //TODO: will be removed later
            ExampleLayoutsRouteConfig.RegisterRoutes(RouteTable.Routes);
        }