public TimesScraperJob(ApplicationContext context, ITimesScraper scraper,
                        ILogger <TimesScraperJob> logger, IOptions <FspScraperOptions> optionsAccessor)
 {
     _context = context;
     _scraper = scraper;
     _logger  = logger;
     Options  = optionsAccessor.Value;
 }
Exemplo n.º 2
0
 public TimesScraperJob(ILogger <TimesScraperJob> logger, FspTimesContext context, ITimesScraper scraper)
 {
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));;
     _timesContext = context ?? throw new ArgumentNullException(nameof(context));;
     _scraper      = scraper ?? throw new ArgumentNullException(nameof(scraper));
 }