Пример #1
0
 public OrderController(ProducerConfig producerConfig, ILogger <OrderController> logger, IConfiguration configuration, IMetricsRegistry metricsRegistry)
 {
     this._producerConfig = producerConfig;
     _topic                 = configuration.GetSection("producer").GetSection("Topic").Value;
     _logger                = logger;
     _metricsRegistry       = metricsRegistry;
     _receivedMessageounter = _metricsRegistry._receivedMessage();
 }