public HomeController( IBackgroundTaskQueue taskQueue, ILogger <HomeController> logger, ILoggerFactory loggerFactory, ISchedulerRegistration schedulerRegistration, TorahVerses torahVerses) { _taskQueue = taskQueue; _logger = logger; _torahVerses = torahVerses; _schedulerRegistration = schedulerRegistration; _loggerFactory = loggerFactory; }
/// <summary> /// Initializes a new instance of the <see cref="SchedulerHostedService"/> class. /// </summary> /// <param name="registrations"></param> public SchedulerHostedService(ISchedulerRegistration registrations) { _registrations = registrations ?? throw new ArgumentNullException(nameof(registrations)); }