Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public KafkaProducerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string producerId)
 {
     Services     = services;
     KafkaHandler = kafkaHandler;
     ProducerId   = producerId;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// KafkaController constructor
 /// </summary>
 /// <param name="messageProducer"></param>
 /// <param name="kafkaHandler"></param>
 public KafkaController(MessageProducerHandler messageProducer, IKakfkaHandler kafkaHandler)
 {
     MessageProducer = messageProducer;
     KafkaHandler    = kafkaHandler;
 }
Ejemplo n.º 4
0
 public MessageConsumerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string consumerId, bool commit = false, int commitPeriod = 5) : base(services, kafkaHandler, consumerId, commit, commitPeriod)
 {
 }
Ejemplo n.º 5
0
 public MessageProducerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string producerId) : base(services, kafkaHandler, producerId)
 {
 }
Ejemplo n.º 6
0
 public KafkaAdminHandler(IServiceCollection services, IKakfkaHandler kafkaHandler)
 {
     Services     = services;
     KafkaHandler = kafkaHandler;
 }