public FdcAgentBlobParser(ILogger <FdcAgentBlobParser> logger, IOptions <FdcAgentBlobConfig> blobConfig, IFdcAgentBus messageBus) { _log = logger; _storageConfig = blobConfig.Value; _serviceClient = new BlobServiceClient(_storageConfig.connectionString); _container = _serviceClient.GetBlobContainerClient(_storageConfig.container); _messageBus = messageBus; }
public FdcAgentHttpClient(HttpClient client, IOptions <DataSources> dataSources, ILogger <FdcAgentHttpClient> log, IFdcAgentBus messageBusFdc) { _dataSources = dataSources.Value; _logger = log; _messageBusFdc = messageBusFdc; client.BaseAddress = new Uri(_dataSources.Usda.FoodDataCentral.BaseUrl); _client = client; }
public FdcBusConsumer(IFdcAgentBus fdcBus) { _fdcBus = fdcBus; }