コード例 #1
0
 public void WaitUntilStop()
 {
     while (true)
     {
         if (status.HasState(ServiceLauncherState.Stopped))
         {
             break;
         }
         threadSleeper.Sleep(serviceStartTimeout);
     }
     consoleHandler.RemoveAll();
     output.Info("\r\nServices were stopped");
 }