public CommandManager(LocalRunspace runspace) { _runspace = runspace; _cmdLets = new Dictionary <string, List <CmdletInfo> >(StringComparer.CurrentCultureIgnoreCase); _scripts = new Dictionary <string, ScriptInfo>(StringComparer.CurrentCultureIgnoreCase); }
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 TabExpansionProvider(LocalRunspace runspace) { _runspace = runspace; }