public KafkaMessageProducer(IKafkaProducerBuilder kafkaProducerBuilder) { _cachedProducer = new Lazy <IProducer <string, string> >(() => kafkaProducerBuilder.Build()); }
public KafkaMessageProducer(ILogger <KafkaMessageProducer <TAvro> > logger, IKafkaProducerBuilder <TAvro> kafkaProducerBuilder) { _cachedProducer = new Lazy <IProducer <string, TAvro> >(() => kafkaProducerBuilder.Build()); _logger = logger; }