Example #1
0
 private void DataReceived_Error(object sender, DataReceivedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Data))
     {
         StdOut?.Invoke(this, e.Data.Trim());
     }
 }
Example #2
0
 private void DataReceived(object sender, DataReceivedEventArgs e)
 {
     Console.WriteLine(e.Data);
     if (!string.IsNullOrEmpty(e.Data))
     {
         StdOut?.Invoke(this, e.Data.Trim());
     }
 }