Ejemplo n.º 1
0
 public StreamConsumer(Stream @in, Stream @out, bool quiet, string prefix, StreamExceptionHandler failureHandler)
 {
     this._quiet              = quiet;
     this._prefix             = prefix;
     this._failureHandler     = failureHandler;
     this.@in                 = new StreamReader(@in);
     this.@out                = new StreamWriter(@out);
     this._stackTraceOfOrigin = new Exception("Stack trace of thread that created this StreamConsumer");
 }
Ejemplo n.º 2
0
 public ProcessStreamHandler(Process process, bool quiet, string prefix, StreamExceptionHandler failureHandler) : this(process, quiet, prefix, failureHandler, System.out, System.err)