/// <summary> /// Initializes a new instance of the <see cref="WinServiceInstallationOptions"/> class. /// </summary> /// <param name="options"> /// The options. /// </param> /// <exception cref="ArgumentNullException"> /// Argument Null Exception /// </exception> public WinServiceInstallationOptions(WinServiceOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } this.Options = options; }
/// <summary> /// Initializes a new instance of the <see cref="WorkersHostWinService"/> class. /// </summary> /// <param name="workersHost"> /// The workers host. /// </param> /// <param name="options"> /// The options. /// </param> /// <exception cref="ArgumentNullException"> /// Argument Null Exception /// </exception> public WorkersHostWinService(IWorkersHost workersHost, WinServiceOptions options) { if (workersHost == null) { throw new ArgumentNullException(nameof(workersHost)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } this.workersHost = workersHost; this.Options = options; }