예제 #1
0
 public MarkDiagnosisKeysAsUsedByIks(Func <DkSourceDbContext> dkDbContextFactory, IIksConfig config, Func <IksPublishingJobDbContext> publishingDbContextFac, ILogger <MarkDiagnosisKeysAsUsedByIks> logger)
 {
     _DkDbContextFactory     = dkDbContextFactory ?? throw new ArgumentNullException(nameof(dkDbContextFactory));
     _IksConfig              = config ?? throw new ArgumentNullException(nameof(config));
     _PublishingDbContextFac = publishingDbContextFac ?? throw new ArgumentNullException(nameof(publishingDbContextFac));
     _Logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public IksEngine(ILogger <IksEngine> logger, IksInputSnapshotCommand snapshotter, IksFormatter formatter, IIksConfig config, IUtcDateTimeProvider dateTimeProvider, MarkDiagnosisKeysAsUsedByIks markSourceAsUsed, IksJobContentWriter contentWriter, Func <IksPublishingJobDbContext> publishingDbContextFac, IWrappedEfExtensions sqlCommands)
 {
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _snapshotter            = snapshotter ?? throw new ArgumentNullException(nameof(snapshotter));
     _formatter              = formatter ?? throw new ArgumentNullException(nameof(formatter));
     _config                 = config ?? throw new ArgumentNullException(nameof(config));
     _dateTimeProvider       = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _markSourceAsUsed       = markSourceAsUsed ?? throw new ArgumentNullException(nameof(markSourceAsUsed));
     _contentWriter          = contentWriter ?? throw new ArgumentNullException(nameof(contentWriter));
     _publishingDbContextFac = publishingDbContextFac ?? throw new ArgumentNullException(nameof(publishingDbContextFac));
     _sqlCommands            = sqlCommands ?? throw new ArgumentNullException(nameof(sqlCommands));
     _jobName                = "IksEngine";
 }