Ejemplo n.º 1
0
 private void OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e.Data != null)
     {
         if (OnStdoutLine != null)
         {
             OnStdoutLine(e.Data);
         }
         if (StdOut.LinesCount >= MAX_BUFFER_LINE_COUNT)
         {
             StdOut.PopFront();
         }
         StdOut.PushBack(e.Data);
     }
     else
     {
         OutputWaitHandle.Set();
     }
 }