Kaynağa Gözat

Merge branch 'master' of http://192.168.1.222:3000/duhongyu/Anyang_api

duhongyu 4 yıl önce
ebeveyn
işleme
e607d35c3b

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

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