public KafkaProducer(IConfiguration configuration, ILogger <KafkaProducer> logger, IConfigUtil configUtil, ICustomPartitioner customPartitioner) { this._configuration = configuration; this._logger = logger; this._configUtil = configUtil; this._producer = null; this._customPartitioner = customPartitioner; initProducer(); _logger.LogInformation("Constructor called"); }
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 ConfigOperator(IConfigUtil configUtil) { _configUtil = configUtil; _configDirPath = ConfigFileUtil.GetConfigDirPath(); _configFile = ConfigFileUtil.GetConfigFile(); }