Ejemplo n.º 1
0
        public ProcessContext(
            ProcessFactory factory,
            Process process, int waitFor = 0, bool killOnTimeOut = false)
        {
            this.KillOnTimeOut = killOnTimeOut;
            this.Process = process;
            this.WaitFor = waitFor;
            this._factory = factory;

            _standardOutput = new ConsoleOutput();
            _errorOutput = new ConsoleOutput();
        }
Ejemplo n.º 2
0
 public StreamReadContext(Stream stream, byte[] buffer, MessageType messageType, 
     ConsoleOutput consoleOutput)
 {
     this._stream = stream;
     this._buffer = buffer;
     this._messageType = messageType;
     this._consoleOutput = consoleOutput;
 }