public CsvDownloaderJob(IBucketUploader bucketUploader,
                         IElectionConfigurationSource electionConfigurationSource,
                         IResultsRepository resultsRepository,
                         IBucketRepository bucketRepository,
                         IVoterTurnoutAggregator voterTurnoutAggregator,
                         IOptions <AppConfig> config)
 {
     _bucketUploader = bucketUploader;
     _electionConfigurationSource = electionConfigurationSource;
     _resultsRepository           = resultsRepository;
     _bucketRepository            = bucketRepository;
     _voterTurnoutAggregator      = voterTurnoutAggregator;
     _config = config.Value;
     Log.LogInformation($"Interval is set to: {_config.IntervalInSeconds} seconds");
 }
Beispiel #2
0
 public CsvDownloaderJob(IBucketUploader bucketUploader,
                         IElectionConfigurationSource electionConfigurationSource,
                         IResultsRepository resultsRepository,
                         IBucketRepository bucketRepository,
                         IVoterTurnoutAggregator voterTurnoutAggregator,
                         ILogger <CsvDownloaderJob> logger,
                         IOptions <AppConfig> config)
 {
     _bucketUploader = bucketUploader;
     _electionConfigurationSource = electionConfigurationSource;
     _resultsRepository           = resultsRepository;
     _bucketRepository            = bucketRepository;
     _voterTurnoutAggregator      = voterTurnoutAggregator;
     _logger = logger;
     _config = config.Value;
     _logger.LogInformation($"JobTimer is set to: {_config.JobTimer}");
 }