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

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