public KafkaConsumerClient(string groupId, IOptions <KafkaOptions> options) { _groupId = groupId; _kafkaOptions = options.Value ?? throw new ArgumentNullException(nameof(options)); }
private static Func <Producer> CreateActivator(KafkaOptions options) { return(() => new Producer(options.AsKafkaConfig())); }
public KafkaConsumerClient(string groupId, KafkaOptions options) { _groupId = groupId; _kafkaOptions = options ?? throw new ArgumentNullException(nameof(options)); StringDeserializer = new StringDeserializer(Encoding.UTF8); }
public ConnectionPool(KafkaOptions options) { _maxSize = options.ConnectionPoolSize; _activator = CreateActivator(options); }
public KafkaConsumerClientFactory(KafkaOptions kafkaOptions) { _kafkaOptions = kafkaOptions; }
public KafkaConsumerClient(string groupId, KafkaOptions options) { _groupId = groupId; _kafkaOptions = options; StringDeserializer = new StringDeserializer(Encoding.UTF8); }
public KafkaConsumerClientFactory(IOptions <KafkaOptions> kafkaOptions) { _kafkaOptions = kafkaOptions.Value; }