Example #1
0
 public TimetableController(DepartureCache cache, CrawlDeparturesProcessor crawlDeparturesProcessor)
 {
     _cache = cache;
     _crawlDeparturesProcessor = crawlDeparturesProcessor;
 }
Example #2
0
 public CrawlDeparturesHostedService(CrawlDeparturesProcessor processor, IOptions <TimetableOptions> options, ILogger <CrawlDeparturesHostedService> logger)
 {
     _processor = processor;
     _options   = options;
     _logger    = logger;
 }