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(); }
public void CancelCurrent() { commandProcedure?.Dispose(); }