public KafkaConsumer(ILogger <KafkaConsumer> logger, IConfiguration configuration, IConfigUtil configUtil, ISynchronzationUtil synchronzationUtil, IMurmurHashUtil murmurHashUtil) { this._logger = logger; this._configuration = configuration; this._configUtil = configUtil; this._synchronzationUtil = synchronzationUtil; this._murmurHashUtil = murmurHashUtil; _topicName = _configuration["ConfigProperties:Kafka:ResponseTopicName"]; EnsureConsumer(); _logger.LogInformation("Constructor called"); }
public KafkaProducerController(IConfiguration configuration, ILogger <KafkaProducerController> logger, IKafkaProducer producer, ISynchronzationUtil synchronzationUtil, IKafkaConsumer consumer, IMapper mapper) { this._configuration = configuration; this._logger = logger; this._producer = producer; this._synchronzationUtil = synchronzationUtil; this._consumer = consumer; //this._consumerThread = consumerThread; this._mapper = mapper; //_consumerThread.StartConsumerThread(); topicName = _configuration["ConfigProperties:Kafka:TopicName"]; _logger.LogInformation("Constructor called"); }