Beispiel #1
0
        public Host(IWin32Window owner)
        {
            _owner = owner;
            _instanceID = Guid.NewGuid();
            _hostUI = new HostUI();

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