protected void Application_End(object sender, EventArgs e) { if (ConfigurationManager.AppSettings["Installer"] == null) { try { JobsHelp.stop(); if (string.IsNullOrEmpty(strUrl)) { Thread.Sleep(0x3e8); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl); using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { using (response.GetResponseStream()) { } } } } catch { Globals.Debuglog("重启动Application_start失败!", "_Debuglog.txt"); } } }
protected void Application_End(object sender, System.EventArgs e) { if (ConfigurationManager.AppSettings["Installer"] != null) { return; } try { JobsHelp.stop(); if (string.IsNullOrEmpty(Global.strUrl)) { System.Threading.Thread.Sleep(1000); System.Net.HttpWebRequest httpWebRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(Global.strUrl); using (System.Net.HttpWebResponse httpWebResponse = (System.Net.HttpWebResponse)httpWebRequest.GetResponse()) { using (httpWebResponse.GetResponseStream()) { } } } } catch { Globals.Debuglog("重启动Application_start失败!", "_Debuglog.txt"); } }
protected void Application_Start(object sender, System.EventArgs e) { bool flag; this.RegisterRouters(RouteTable.Routes); if (ConfigurationManager.AppSettings["Installer"] != null) { Globals.Debuglog("到这里了,!网站未安装!", "_Debuglog.txt"); return; } SiteSettings masterSettings = SettingsManager.GetMasterSettings(false); AlipayFuwuConfig.CommSetConfig(masterSettings.AlipayAppid, base.Server.MapPath("~/"), "GBK"); AlipayFuwuConfig.SetWriteLog(true); if (string.IsNullOrEmpty(Global.strUrl)) { string str = HttpContext.Current.Request.Url.Port.ToString(); str = (str == "80" ? "" : string.Concat(":", str)); Global.strUrl = string.Format("http://{0}/UserLogin.aspx", string.Concat(HttpContext.Current.Request.Url.Host, str)); } JobsHelp.start(base.Server.MapPath("/config/JobConfig.xml")); string str1 = base.Server.MapPath("/"); (new Thread(() => (new AsyncWorkDelegate_TongJi()).CalData(str1, out flag))).Start(); }
protected void Application_Start(object sender, System.EventArgs e) { if (ConfigurationManager.AppSettings["Installer"] != null) { Globals.Debuglog("到这里了,!网站未安装!", "_Debuglog.txt"); return; } SiteSettings masterSettings = SettingsManager.GetMasterSettings(false); AlipayFuwuConfig.CommSetConfig(masterSettings.AlipayAppid, base.Server.MapPath("~/"), "GBK"); AlipayFuwuConfig.SetWriteLog(true); if (string.IsNullOrEmpty(Global.strUrl)) { string text = System.Web.HttpContext.Current.Request.Url.Port.ToString(); text = ((text == "80") ? "" : (":" + text)); Global.strUrl = string.Format("http://{0}/UserLogin.aspx", System.Web.HttpContext.Current.Request.Url.Host + text); } JobsHelp.start(base.Server.MapPath("/config/JobConfig.xml")); string AppPath = base.Server.MapPath("/"); bool result; new System.Threading.Thread(() => { AsyncWorkDelegate_TongJi asyncWorkDelegate_TongJi = new AsyncWorkDelegate_TongJi(); asyncWorkDelegate_TongJi.CalData(AppPath, out result); }).Start(); }
protected void Application_Start(object sender, EventArgs e) { string AppPath; bool result; if (ConfigurationManager.AppSettings["Installer"] != null) { Globals.Debuglog("到这里了,!网站未安装!", "_Debuglog.txt"); } else { AlipayFuwuConfig.CommSetConfig(SettingsManager.GetMasterSettings(false).AlipayAppid, base.Server.MapPath("~/"), "GBK"); AlipayFuwuConfig.SetWriteLog(true); JobsHelp.start(base.Server.MapPath("/config/JobConfig.xml")); AppPath = base.Server.MapPath("/"); new Thread(() => new AsyncWorkDelegate_TongJi().CalData(AppPath, out result)).Start(); } }
protected void Application_Start(object sender, EventArgs e) { string AppPath; bool result; if (ConfigurationManager.AppSettings["Installer"] != null) { Globals.Debuglog("到这里了,!网站未安装!", "_Debuglog.txt"); } else { AlipayFuwuConfig.CommSetConfig(SettingsManager.GetMasterSettings(false).AlipayAppid, base.Server.MapPath("~/"), "GBK"); AlipayFuwuConfig.SetWriteLog(true); //if (string.IsNullOrEmpty(strUrl)) //{ // string str = HttpContext.Current.Request.Url.Port.ToString(); // strUrl = string.Format("http://{0}/UserLogin.aspx", HttpContext.Current.Request.Url.Host + ((str == "80") ? "" : (":" + str))); //} JobsHelp.start(base.Server.MapPath("/config/JobConfig.xml")); AppPath = base.Server.MapPath("/"); new Thread(() => new AsyncWorkDelegate_TongJi().CalData(AppPath, out result)).Start(); } }