Example #1
0
 public ScheduledTask(IServiceScopeFactory serviceScopeFactory,
                      ITurnoutCrawler turnoutCrawler,
                      IResultsCrawler resultsCrawler,
                      IOptions <LiveElectionSettings> options)
     : base(serviceScopeFactory, options)
 {
     _turnoutCrawler = turnoutCrawler;
     _resultsCrawler = resultsCrawler;
 }
Example #2
0
 public ResultsAggregator(IServiceProvider serviceProvider,
                          IPartiesRepository partiesRepository,
                          IWinnersAggregator winnersAggregator,
                          IElectionsRepository electionRepository,
                          IOptions <LiveElectionSettings> options,
                          ILiveElectionUrlBuilder urlBuilder,
                          IAppCache appCache,
                          IResultsCrawler resultsCrawler)
 {
     _serviceProvider    = serviceProvider;
     _partiesRepository  = partiesRepository;
     _winnersAggregator  = winnersAggregator;
     _electionRepository = electionRepository;
     _urlBuilder         = urlBuilder;
     _appCache           = appCache;
     _resultsCrawler     = resultsCrawler;
     _settings           = options.Value;
 }