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; }
/// <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) { }
public MessageProducerHandler(IServiceCollection services, IKakfkaHandler kafkaHandler, string producerId) : base(services, kafkaHandler, producerId) { }
public KafkaAdminHandler(IServiceCollection services, IKakfkaHandler kafkaHandler) { Services = services; KafkaHandler = kafkaHandler; }