public override void Initialize(IHostContext hostContext) { base.Initialize(hostContext); _terminal = hostContext.GetService <ITerminal>(); _windowsServiceHelper = hostContext.GetService <INativeWindowsServiceHelper>(); _autoLogonRegManager = HostContext.GetService <IAutoLogonRegistryManager>(); _store = hostContext.GetService <IConfigurationStore>(); }