Exemple #1
0
 public IksPollingBatchJob(
     IUtcDateTimeProvider dateTimeProvider,
     Func <IHttpGetIksCommand> receiverFactory,
     Func <IIksWriterCommand> writerFactory,
     IksInDbContext iksInDbContext,
     IEfgsConfig efgsConfig,
     IksDownloaderLoggingExtensions logger)
 {
     _dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _receiverFactory  = receiverFactory ?? throw new ArgumentNullException(nameof(receiverFactory));
     _writerFactory    = writerFactory ?? throw new ArgumentNullException(nameof(writerFactory));
     _iksInDbContext   = iksInDbContext ?? throw new ArgumentNullException(nameof(iksInDbContext));
     _efgsConfig       = efgsConfig ?? throw new ArgumentNullException(nameof(efgsConfig));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public HttpGetIksCommand(IEfgsConfig efgsConfig, IAuthenticationCertificateProvider certificateProvider, IksDownloaderLoggingExtensions logger)
 {
     _efgsConfig          = efgsConfig ?? throw new ArgumentNullException(nameof(efgsConfig));
     _certificateProvider = certificateProvider ?? throw new ArgumentNullException(nameof(certificateProvider));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }