public void Abort() { if (ExecutingPipeline != null) { ExecutingPipeline.StopAsync(); } ComplexCommand.Clear(); }
public void Abort() { ExecutingPipeline?.StopAsync(); ComplexCommand.Clear(); try { _tokenSource?.Cancel(); } catch (ObjectDisposedException) { // ObjectDisposedException is expected here, since at clear console command, tokenSource // would have already been disposed. } }
public void Abort() { ExecutingPipeline?.StopAsync(); ComplexCommand.Clear(); }