private void Process_OutputDataReceived(object sender, DataReceivedEventArgs e) { try { if (e.Data != null) { HandleLogEvent?.Invoke(e.Data); } } catch (Exception exception) { Console.WriteLine(exception); } }
void OnLogEvent(string message) => HandleLogEvent?.Invoke(message);