public ExportJobTask( Func <IScoped <IFhirOperationDataStore> > fhirOperationDataStoreFactory, IOptions <ExportJobConfiguration> exportJobConfiguration, Func <IScoped <ISearchService> > searchServiceFactory, IGroupMemberExtractor groupMemberExtractor, IResourceToByteArraySerializer resourceToByteArraySerializer, IExportDestinationClient exportDestinationClient, ILogger <ExportJobTask> logger) { EnsureArg.IsNotNull(fhirOperationDataStoreFactory, nameof(fhirOperationDataStoreFactory)); EnsureArg.IsNotNull(exportJobConfiguration?.Value, nameof(exportJobConfiguration)); EnsureArg.IsNotNull(searchServiceFactory, nameof(searchServiceFactory)); EnsureArg.IsNotNull(groupMemberExtractor, nameof(groupMemberExtractor)); EnsureArg.IsNotNull(resourceToByteArraySerializer, nameof(resourceToByteArraySerializer)); EnsureArg.IsNotNull(exportDestinationClient, nameof(exportDestinationClient)); EnsureArg.IsNotNull(logger, nameof(logger)); _fhirOperationDataStoreFactory = fhirOperationDataStoreFactory; _exportJobConfiguration = exportJobConfiguration.Value; _searchServiceFactory = searchServiceFactory; _groupMemberExtractor = groupMemberExtractor; _resourceToByteArraySerializer = resourceToByteArraySerializer; _exportDestinationClient = exportDestinationClient; _logger = logger; }
public ExportJobTask( IFhirOperationDataStore fhirOperationDataStore, ISecretStore secretStore, IOptions <ExportJobConfiguration> exportJobConfiguration, ISearchService searchService, IResourceToByteArraySerializer resourceToByteArraySerializer, IExportDestinationClientFactory exportDestinationClientFactory, ILogger <ExportJobTask> logger) { EnsureArg.IsNotNull(fhirOperationDataStore, nameof(fhirOperationDataStore)); EnsureArg.IsNotNull(secretStore, nameof(secretStore)); EnsureArg.IsNotNull(exportJobConfiguration?.Value, nameof(exportJobConfiguration)); EnsureArg.IsNotNull(searchService, nameof(searchService)); EnsureArg.IsNotNull(resourceToByteArraySerializer, nameof(resourceToByteArraySerializer)); EnsureArg.IsNotNull(exportDestinationClientFactory, nameof(exportDestinationClientFactory)); EnsureArg.IsNotNull(logger, nameof(logger)); _fhirOperationDataStore = fhirOperationDataStore; _secretStore = secretStore; _exportJobConfiguration = exportJobConfiguration.Value; _searchService = searchService; _resourceToByteArraySerializer = resourceToByteArraySerializer; _exportDestinationClientFactory = exportDestinationClientFactory; _logger = logger; }