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)); }
public WindowsServiceController([NotNull] IPersistentInstallState persistentInstallState, [NotNull] ILogger logger) { _PersistentInstallState = persistentInstallState; _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }