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); }
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()); }
public IoCommand(Command command, Task ioTask) { this.command = command; this.task = this.CreateTask(ioTask); }