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;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 public HomeController(IOptions <TorahSettings> options)
 {
     _options = options.Value;
 }