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;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public FdcBusConsumer(IFdcAgentBus fdcBus)
 {
     _fdcBus = fdcBus;
 }