protected void Application_End() { SshServerConfig.StopSshServer(); ScheduleConfig.StopAndWait(); Logger.Info(AppInfomation.GetAppEndInfo()); Process.GetCurrentProcess().Kill(); }
protected void Application_Start() { HidingRequestResponse = HttpRuntime.UsingIntegratedPipeline; Logger.SetLogPath(); Logger.Info(AppInfomation.GetAppStartingInfo()); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); MefConfig.RegisterMef(); ScheduleConfig.RegisterScheduler(); GitCache.Initialize(); Logger.Info(AppInfomation.GetAppStartedInfo()); HidingRequestResponse = false; }
protected void Application_End() { ScheduleConfig.StopAndWait(); Logger.Info(AppInfomation.GetAppEndInfo()); }