public HttpPostGenerateExposureKeySetsCommand(WorkflowDbContext input, ExposureContentDbContext output, IUtcDateTimeProvider utcDateTimeProvider, IEfDbConfig standardEfDbConfig, IGaenContentConfig gaenContentConfig, IExposureKeySetHeaderInfoConfig hsmExposureKeySetHeaderInfoConfig, IExposureKeySetBatchJobConfig exposureKeySetBatchJobConfig) { _Input = input; _Output = output; _UtcDateTimeProvider = utcDateTimeProvider; _StandardEfDbConfig = standardEfDbConfig; _GaenContentConfig = gaenContentConfig; _HsmExposureKeySetHeaderInfoConfig = hsmExposureKeySetHeaderInfoConfig; _ExposureKeySetBatchJobConfig = exposureKeySetBatchJobConfig; }
/// <summary> /// Prod /// </summary> public ExposureKeySetBatchJob(ITekSource tekSource, IDbContextOptionsBuilder jobDbOptionsBuilder, IUtcDateTimeProvider dateTimeProvider, IExposureKeySetWriter eksWriter, IAgConfig agConfig, IJsonExposureKeySetFormatter jsonSetFormatter, IExposureKeySetBuilder agSetBuilder, IExposureKeySetBatchJobConfig jobConfig) { _Used = new List <WorkflowInputEntity>(_JobConfig.InputListCapacity); _Start = dateTimeProvider.Now(); JobName = $"ExposureKeySetsJob_{_Start:u}".Replace(" ", "_"); _AgConfig = agConfig; _TekSource = tekSource; _JobDbProvider = new DbContextProvider <ExposureKeySetsBatchJobDbContext>( () => new ExposureKeySetsBatchJobDbContext(jobDbOptionsBuilder.AddDatabaseName(JobName).Build())); _JsonSetFormatter = jsonSetFormatter; _AgSetBuilder = agSetBuilder; _JobConfig = jobConfig; _Writer = eksWriter; }