Beispiel #1
0
        internal PipedCommand(Command first, Command second)
        {
            this.first = first;
            this.second = second;

            var pipeStreamsTask = this.first.StandardOutput.PipeToAsync(this.second.StandardInput.BaseStream);
            this.task = this.CreateTask(pipeStreamsTask);
        }
Beispiel #2
0
 internal CommandResult(int exitCode, Command command)
 {
     this.ExitCode = exitCode;
     this.standardOutput = new Lazy<string>(() => command.StandardOutput.ReadToEnd());
     this.standardError = new Lazy<string>(() => command.StandardError.ReadToEnd());
 }
Beispiel #3
0
 public IoCommand(Command command, Task ioTask)
 {
     this.command = command;
     this.task = this.CreateTask(ioTask);
 }