Пример #1
0
 public Consumer(KafkaOprtions options, bool _commitOnConsume = false)
 {
     this._commitOnConsume = _commitOnConsume;
     _consumerConfig       = new ConsumerConfig(options.Configuration);
 }
Пример #2
0
 public Publisher(KafkaOprtions options)
 {
     this._producerConfig = new ProducerConfig(options.Configuration);
     rnd = new Random();
 }