internal PSKernelHost() { _hostVersion = new Version("0.0.1"); _instanceId = Guid.NewGuid(); _ui = new PSKernelHostUserInterface(); _consoleColorProxy = PSObject.AsPSObject(new ConsoleColorProxy(_ui)); }
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)); }
public ConsoleColorProxy(PSKernelHostUserInterface ui) { _ui = ui ?? throw new ArgumentNullException(nameof(ui)); }