Inheritance: System.Management.Automation.Runspaces.Runspace
示例#1
0
        public CommandManager(LocalRunspace runspace)
        {
            _runspace = runspace;

            _cmdLets = new Dictionary <string, List <CmdletInfo> >(StringComparer.CurrentCultureIgnoreCase);
            _scripts = new Dictionary <string, ScriptInfo>(StringComparer.CurrentCultureIgnoreCase);
        }
示例#2
0
        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);
            }
        }
示例#3
0
 public TabExpansionProvider(LocalRunspace runspace)
 {
     _runspace = runspace;
 }
示例#4
0
 public TabExpansionProvider(LocalRunspace runspace)
 {
     _runspace = runspace;
 }