예제 #1
0
 internal PSKernelHost()
 {
     _hostVersion       = new Version("0.0.1");
     _instanceId        = Guid.NewGuid();
     _ui                = new PSKernelHostUserInterface();
     _consoleColorProxy = PSObject.AsPSObject(new ConsoleColorProxy(_ui));
 }
예제 #2
0
 internal PSKernelHost(PowerShellKernel powerShell)
 {
     _powerShell        = powerShell ?? throw new ArgumentNullException(nameof(powerShell));
     _hostVersion       = new Version("0.0.1");
     _instanceId        = Guid.NewGuid();
     _ui                = new PSKernelHostUserInterface(_powerShell);
     _consoleColorProxy = PSObject.AsPSObject(new ConsoleColorProxy(_ui));
 }
예제 #3
0
 public ConsoleColorProxy(PSKernelHostUserInterface ui)
 {
     _ui = ui ?? throw new ArgumentNullException(nameof(ui));
 }