コード例 #1
0
        public void Configuration(IAppBuilder app)
        {
            app.Map("/signalr", map =>
            {
                map.UseCors(CorsOptions.AllowAll);

                var configuration = new HubConfiguration
                {
                    EnableJavaScriptProxies = true
                };

                map.RunSignalR(configuration);
                var module = new AuthorizeModule(null, null);
                GlobalHost.HubPipeline.AddModule(module);
            });

            LogManager.InternalizeLogger();
            AreaRegistration.RegisterAllAreas();
            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            NPocoConfig.Register();
            StartupRegistration.Register();
            BackupRegistration.Register();
            EodTaskRegistration.Register();
            AccountConfig.Register(app);
        }
コード例 #2
0
ファイル: Global.asax.cs プロジェクト: AYCHErp/Frapid
 protected void Application_Start()
 {
     LogManager.InternalizeLogger();
     AreaRegistration.RegisterAllAreas();
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     NPocoConfig.Register();
     StartupRegistration.Register();
 }