protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e) { if (e.Line == null) { return; } Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line); ConsoleOutput?.Invoke(this, e); }
protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e) { if (e.Line == null) { return; } Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line); var handler = ConsoleOutput; if (handler != null) { handler(this, e); } }
protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e) { if (e.Line == null) return; Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line); var handler = ConsoleOutput; if (handler != null) handler(this, e); }
private void OnConsoleOutput(object sender, ConsoleOutputEventArgs e) { try { OnOutput(new NgenOutputEventArgs(e.Line)); } catch (Exception ex) { Trace.TraceError("OnOutput exception ignored: Error={0}", ex.ToString()); } UpdateProgress(e.Line); }