public void CloseServices()
 {
     // 确保request得到response后再Exit
     TimeSpan.FromSeconds(1).Delay().ContinueWith(t => {
         HostRoot.Exit();
     });
 }
示例#2
0
 public void CloseServices()
 {
     if (!HostRoot.IsNotOfficial)
     {
         return;
     }
     // 确保request得到response后再Exit
     TimeSpan.FromSeconds(1).Delay().ContinueWith(t => {
         HostRoot.Exit();
     });
 }
 public void CloseServices()
 {
     HostRoot.Exit();
 }