// TODO: hook the runtime to the Host for Debug and Error output internal PipelineCommandRuntime(PipelineProcessor pipelineProcessor) { PipelineProcessor = pipelineProcessor; MergeErrorToOutput = false; MergeUnclaimedPreviousErrors = false; OutputStream = new ObjectStream(this); ErrorStream = new ObjectStream(this); InputStream = new ObjectStream(this); }
public LocalPipeline(LocalRunspace runspace, string command) : base() { _runspace = runspace; _inputStream = new ObjectStream(); _outputStream = new ObjectStream(); _errorStream = new ObjectStream(); _inputPipelineWriter = new ObjectStreamWriter(_inputStream); _outputPipelineReader = new PSObjectPipelineReader(_outputStream); _errorPipelineReader = new ObjectPipelineReader(_errorStream); _pipelineStateInfo = new PipelineStateInfo(PipelineState.NotStarted); if (!string.IsNullOrEmpty(command)) Commands.Add(command); }
public LocalPipeline(LocalRunspace runspace, string command) : base() { _runspace = runspace; _inputStream = new ObjectStream(); _outputStream = new ObjectStream(); _errorStream = new ObjectStream(); _inputPipelineWriter = new ObjectStreamWriter(_inputStream); _outputPipelineReader = new PSObjectPipelineReader(_outputStream); _errorPipelineReader = new ObjectPipelineReader(_errorStream); _pipelineStateInfo = new PipelineStateInfo(PipelineState.NotStarted); if (!string.IsNullOrEmpty(command)) { Commands.Add(command); } }
public PSObjectPipelineReader(IEnumerable input) : base() { _stream = new ObjectStream(input); }
public PSObjectPipelineReader(ObjectStream stream) : base() { _stream = stream; }
public ObjectStreamWriter(ObjectStream stream) { _stream = stream; }
public void Redirect(ObjectStream redirection) { _objectsStream = redirection._objectsStream; ClaimedBy = redirection.Owner; }