/// <summary> /// Initializes a new instance of the <see cref="TorahQuoteJob"/> class. /// </summary> /// <param name="options"></param> /// <param name="service"></param> /// <param name="torahVerses"></param> public TorahQuoteJob( IOptionsMonitor <TorahQuoteJobOptions> options, TorahService service, TorahVerses torahVerses) : base(options.CurrentValue) { _options = options.CurrentValue; _service = service ?? throw new ArgumentNullException(nameof(service)); _torahVerses = torahVerses ?? throw new ArgumentNullException(nameof(torahVerses)); }
/// <summary> /// Initializes a new instance of the <see cref="TorahQuoteJob"/> class. /// </summary> /// <param name="options"></param> /// <param name="service"></param> /// <param name="torahVerses"></param> public TorahQuoteJob( IOptionsMonitor <TorahQuoteJobOptions> options, TorahService service, TorahVerses torahVerses) { _options = options.Get(Name); _service = service ?? throw new ArgumentNullException(nameof(service)); _torahVerses = torahVerses ?? throw new ArgumentNullException(nameof(torahVerses)); }