コード例 #1
0
        //private IList<SRLegacyFoodItem> _itemsList;

        public FdcAgentCosmosClient(ILogger <FdcAgentCosmosClient> logger, IOptions <FdcAgentCosmosDbConfig> options, IFdcAgentBusConsumer messageConsumer)
        {
            _logger          = logger;
            _messageConsumer = messageConsumer;
            _cosmosDbConfig  = options.Value;
            _cosmosClient    = new CosmosClient(_cosmosDbConfig.endPointUrl, _cosmosDbConfig.authorizationKey, _cosmosClientOptions);
        }
コード例 #2
0
 public FdcAgentController(ILogger <FdcAgentController> logger, IFdcAgentBlobParser blobParser, IFdcAgentBusConsumer msgConsumer,
                           IFdcAgentHttpClient httpClient, IFdcAgentCosmosClient cosmosClient)
 {
     _logger       = logger;
     _blobParser   = blobParser;
     _msgConsumer  = msgConsumer;
     _httpClient   = httpClient;
     _cosmosClient = cosmosClient;
 }