internal async Task ServerOutputNotification(ServerOutputNotification notification) { if (ConsoleOutputReceived != null) { await ConsoleOutputReceived?.Invoke(notification); } }
/// <summary> /// Callback for all output lines coming from the underlying <see cref="process"/>. /// </summary> private void OnConsoleOutputReceived(object sender, DataReceivedEventArgs e) { if (string.IsNullOrEmpty(e.Data)) { return; } if (LogConsoleToTrace) { Log.Info(this, "Info: " + e.Data); } ConsoleOutputReceived?.Invoke(e.Data); }