protected void Application_Start() { using (new PerformanceMonitor()) { TableRegister.Initialize(); logger.Log("Application Start Called."); var app = new Admin.Application(); bool loggedOn = app.LogOn(); logger.Log("Logged On: {0}".FormatWithCulture(loggedOn)); FederatedAuthentication.ServiceConfigurationCreated += this.OnServiceConfigurationCreated; AreaRegistration.RegisterAllAreas(); Contract.Assume(null != GlobalFilters.Filters); RegisterGlobalFilters(GlobalFilters.Filters); Contract.Assume(null != RouteTable.Routes); RegisterRoutes(RouteTable.Routes); logger.Log("Application Started."); } }
/// <summary> /// Application Start /// </summary> protected void Application_Start() { using (new PerformanceMonitor()) { TableRegister.Initialize(); logger.Log("Application Start Called."); var app = new Admin.Application(); bool loggedOn = app.LogOn(); logger.Log(string.Format("Logged On: {0}", loggedOn)); AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AuthConfig.RegisterAuth(); logger.Log("Application Started."); } }