Ejemplo n.º 1
0
        public Host(IWin32Window owner)
        {
            _owner = owner;
            _instanceID = Guid.NewGuid();
            _hostUI = new HostUI();

            _runspace = RunspaceFactory.CreateRunspace(this);
            _runspace.ApartmentState = ApartmentState.STA;
            _runspace.Open();
        }
Ejemplo n.º 2
0
 public PowerShellUI(HostUI hostUI)
 {
     _hostUI = hostUI;
     _rawUI = new PowerShellRawUI(hostUI);
 }
Ejemplo n.º 3
0
 public PowerShellRawUI(HostUI hostUI)
 {
     _hostUI = hostUI;
 }