예제 #1
0
파일: Host.cs 프로젝트: x-cubed/Second-Law
        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;
 }