private void Application_Start(object sender, EventArgs e) { CallBLL.Call(); PageBase.SetCacheByFile("MessageHint"); PageBase.SetCacheByFile("HtmlHeaderHint"); FileCacheHelper.SetConfigCacheByFile(); FileCacheHelper.SetConfigZodiacCacheByFile(); FileCacheHelper.SetConfigLotteryCacheByFile(); MessageQueueConfig.set_folderType(2); MessageQueueConfig.RegisterMessageQueue(); }
protected void Application_Start(object sender, EventArgs e) { CallBLL.Call(); // BLLComm.Logger.SetPath(System.Web.HttpContext.Current.Server.MapPath("~/global.log")); if (timer == null) { timer = new System.Timers.Timer(); timer.Interval = 60 * 1000; timer.Elapsed += Timer_Elapsed; timer.Start(); // BLLComm.Logger.Log("初始化定时作业成功..."); } }
private void Application_Start(object sender, EventArgs e) { CallBLL.Call(); PageBase.SetCacheByFile("MessageHint"); PageBase.SetCacheByFile("HtmlHeaderHint"); FileCacheHelper.SetConfigCacheByFile(); FileCacheHelper.SetConfigZodiacCacheByFile(); FileCacheHelper.SetConfigLotteryCacheByFile(); PageBase.SetWebconfigApp(); string str = ConfigurationManager.AppSettings["LogException"]; if (str.Trim() == "true") { MessageQueueConfig.set_folderType(1); MessageQueueConfig.RegisterMessageQueue(); } }