Browse Source

修改Quartz

zhoufan 4 years ago
parent
commit
f4c58ef717

+ 7 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Global.asax.cs

31
             _worker.AddWork(ZhengWuDuiJie);
31
             _worker.AddWork(ZhengWuDuiJie);
32
             _worker.Start();
32
             _worker.Start();
33
         }
33
         }
34
+        protected void Application_End()
35
+        {
36
+            if (_worker != null)
37
+            {
38
+                _worker.Stop();
39
+            }
40
+        }
34
 
41
 
35
         protected void Application_AuthenticateRequest(object sender, EventArgs e)
42
         protected void Application_AuthenticateRequest(object sender, EventArgs e)
36
         {
43
         {