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