Example #1
0
 protected KafkaConsumerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string consumerId, bool commit = false, int commitPeriod = 5)
 {
     Services           = services;
     KafkaHandler       = kafkaHandler;
     ConsumerId         = consumerId;
     EnableConsumerFlag = true;
     Commit             = commit;
     CommitPeriod       = commitPeriod;
     Consume(Commit, CommitPeriod);
 }
 public KafkaProducerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string producerId)
 {
     Services     = services;
     KafkaHandler = kafkaHandler;
     ProducerId   = producerId;
 }
Example #3
0
 /// <summary>
 /// KafkaController constructor
 /// </summary>
 /// <param name="messageProducer"></param>
 /// <param name="kafkaHandler"></param>
 public KafkaController(MessageProducerHandler messageProducer, IKakfkaHandler kafkaHandler)
 {
     MessageProducer = messageProducer;
     KafkaHandler    = kafkaHandler;
 }
 public MessageConsumerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string consumerId, bool commit = false, int commitPeriod = 5) : base(services, kafkaHandler, consumerId, commit, commitPeriod)
 {
 }
Example #5
0
 public MessageProducerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string producerId) : base(services, kafkaHandler, producerId)
 {
 }
 public KafkaAdminHandler(IServiceCollection services, IKakfkaHandler kafkaHandler)
 {
     Services     = services;
     KafkaHandler = kafkaHandler;
 }