示例#1
0
 public override void Initialize(IHostContext hostContext)
 {
     base.Initialize(hostContext);
     _registryManager      = hostContext.GetService <IWindowsRegistryManager>();
     _windowsServiceHelper = hostContext.GetService <INativeWindowsServiceHelper>();
     _terminal             = HostContext.GetService <ITerminal>();
 }
示例#2
0
 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>();
 }
 public override void Initialize(IHostContext hostContext)
 {
     base.Initialize(hostContext);
     _windowsServiceHelper = HostContext.GetService<INativeWindowsServiceHelper>();
 }
 public override void Initialize(IHostContext hostContext)
 {
     base.Initialize(hostContext);
     _windowsServiceHelper = HostContext.GetService <INativeWindowsServiceHelper>();
 }