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); }
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(); }