protected void Application_End(object sender, EventArgs e) { try { ActorsFactory.Dispose(); //关闭的时候不等待任务完成 TaskManager._WaitForJobsToComplete = false; LibReleaseHelper.DisposeAll(); //记录程序关闭 nameof(Application_End).AddBusinessInfoLog(); } catch (Exception ex) { ex.AddErrorLog("网站关闭异常"); throw ex; } }
protected void Application_End(object sender, EventArgs e) { try { ActorsFactory.Dispose(); //关闭的时候不等待任务完成 TaskManager._WaitForJobsToComplete = false; LibReleaseHelper.DisposeAll(); //记录程序关闭 "Application_End".AddInfoLog(this.GetType()); } catch (Exception ex) { ex.AddLog("网站关闭异常"); throw ex; } }
protected void Application_End(object sender, EventArgs e) { try { ActorsFactory.Dispose(); //关闭的时候不等待任务完成 TaskManager.Dispose(); AutofacIocContext.Instance.Dispose(); LibReleaseHelper.DisposeAll(); //记录程序关闭 nameof(Application_End).AddBusinessInfoLog(); } catch (Exception ex) { ex.AddErrorLog("网站关闭异常"); throw ex; } }