Пример #1
0
 public Task Kill()
 {
     return(Task.Run(() =>
     {
         commandKillServer.OutputReceived += (s, e) =>
         {
             SLogger.Info(this, $"{e.Text}");
         };
         commandKillServer.ExecuteAsync();
         Thread.Sleep(MAX_TIMEOUT);
         if (commandKillServer.Status != CommandStatus.Executing && commandKillServer.Result.ExitCode == 0)
         {
             commandKillServer.Cancel();
             commandKillServer.Dispose();
             KilProcesses();
         }
     }));
 }
 public void Dispose()
 {
     _proxy.Dispose();
 }
Пример #3
0
 public void CancelCurrent()
 {
     commandProcedure?.Dispose();
 }