Beispiel #1
0
 public KafkaProducer(IKafkaConfig kafkaConfig, IPubSubModelMapper modelMapper,
                      IAvroMapper avroMapper, ILogManager logManager)
 {
     _kafkaConfig = kafkaConfig;
     _modelMapper = modelMapper;
     _avroMapper  = avroMapper;
     _logger      = logManager.GetClassLogger();
     _topics      = GetTopics();
 }
 public Utf8JsonTypedPublisher(ProducerConfig config, IPubSubModelMapper mapper, ILogger logger)
 {
     _mapper = mapper;
     _logger = logger;
     Init(config);
 }