zhoufan 4 lat temu
rodzic
commit
f4c58ef717

+ 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
         {