110,534
社区成员
发帖
与我相关
我的任务
分享
protected void Application_End(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(5000);
string url = "http://localhost:XXXX//XXXXX";
System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url);
System.Net.HttpWebResponse rsp = (System.Net.HttpWebResponse)req.GetResponse();
string tmp = rsp.StatusDescription;
string errorlogtime = DateTime.Now.ToString("yyyyMMddhhmmssfff").ToString();
if (sched != null)
{
sched.Shutdown(true);
}
}