public TorahQuoteJob(IOptions <TorahSettings> options, TorahService service) { _options = options.Value; CronSchedule = _options.CronSchedule; //set to 1 min in appsettings.json RunImmediately = true; _service = service; }
public HomeController( IOptions <TorahSettings> options, IBackgroundTaskQueue taskQueue, ILogger <HomeController> logger, TorahVerses torahVerses) { _options = options.Value; _taskQueue = taskQueue; _logger = logger; _torahVerses = torahVerses; }
public TorahQuoteJob( IOptionsMonitor <TorahSettings> options, TorahService service, TorahVerses torahVerses) { _options = options.CurrentValue; CronSchedule = _options.CronSchedule; //set to 10 seconds in appsettings.json RunImmediately = _options.RunImmediately; CronTimeZone = _options.CronTimeZone; _service = service; _torahVerses = torahVerses; }
public HomeController(IOptions <TorahSettings> options) { _options = options.Value; }