Beispiel #1
0
 public void Stop(bool kill = false)
 {
     AsyncManager.Stop(kill);
     foreach (var t in Values)
     {
         try
         {
             t.Stop();
         }
         catch { }
     }
     Clear();
 }
Beispiel #2
0
 public void Stop(bool kill = false)
 {
     if (!Running)
     {
         return;
     }
     AsyncManager.StopEvent.Set();
     try
     {
         Socket?.CloseAsync(WebSocketCloseStatus.NormalClosure, null, Source.Token).Wait(500);
     }
     catch { }
     Source.Cancel();
     AsyncManager.Stop(kill);
     Main.LogManager.Log(LogManager.CATEGORY_SERVICE_INFO, "Service", "RemoteManager: 远程管理正常退出");
 }
 public void Stop(bool kill = false) => AsyncManager.Stop(kill);
 public void Stop(bool kill = false)
 {
     AsyncManager.Stop(kill);
     StopAllAndClear();
 }