private void Process_ErrorDataReceived(object sender, DataReceivedEventArgs e) { if (CancellationToken.IsCancellationRequested && !Process.HasExited) { Stop(); return; } if (!string.IsNullOrEmpty(e.Data)) { Debug(e.Data); ErrorOutput.Push(e.Data); OnError?.Invoke(e.Data); } }