Пример #1
0
        public Host(IWin32Window owner)
        {
            _owner = owner;
            _instanceID = Guid.NewGuid();
            _hostUI = new HostUI();

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