public async Task <IActionResult> Execute(bool useAllKeys = false) { //var jobConfigBuilder = new SqlServerDbContextOptionsBuilder(_StandardEfDbConfig); using var bb = new ExposureKeySetBatchJobMk2( _GaenContentConfig, new ExposureKeySetBuilderV1( _HsmExposureKeySetHeaderInfoConfig, new HardCodedSigner(), _UtcDateTimeProvider, new GeneratedProtobufContentFormatter()), _Input, _Output, _UtcDateTimeProvider, new StandardPublishingIdFormatter(new HardCodedSigner()) //new ExposureKeySetDbWriter(_Output, new Sha256PublishingId(new HardCodedExposureKeySetSigning())), //new JsonContentExposureKeySetFormatter(), //_ExposureKeySetBatchJobConfig //jobConfigBuilder, ); try { await bb.Execute(useAllKeys); } catch (Exception e) { throw; } return(new OkResult()); }
public HttpPostGenerateExposureKeySetsCommand(ExposureKeySetBatchJobMk2 job) { _Job = job; }
public async Task <IActionResult> ExposureKeySets([FromQuery] bool useAllKeys, [FromServices] ExposureKeySetBatchJobMk2 command) { _Logger.LogInformation("EKS Engine triggered."); await command.Execute(useAllKeys); return(new OkResult()); }