Exemplo n.º 1
0
 public UninstallWindowsServiceCommand(
     [NotNull] IWindowsServiceConfiguration configuration, [NotNull] IInstallContextProvider installContextProvider,
     [NotNull] IPersistentInstallState persistentInstallState)
 {
     _Configuration          = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _InstallContextProvider = installContextProvider ?? throw new ArgumentNullException(nameof(installContextProvider));
     _PersistentInstallState = persistentInstallState ?? throw new ArgumentNullException(nameof(persistentInstallState));
 }
Exemplo n.º 2
0
 public WindowsServiceController([NotNull] IPersistentInstallState persistentInstallState, [NotNull] ILogger logger)
 {
     _PersistentInstallState = persistentInstallState;
     _Logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }