Наследование: 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;
 }