internal KafkaProducer( IProducerBuilderWrapper <TKey, TValue> producerBuilder, IKafkaSerializerFactory serializerFactory) { producerBuilder.SetValueSerializer(serializerFactory.GetValueSerializer <TValue>()); _producer = producerBuilder.Build(); }
public KafkaProducer(KafkaProducerConnection connection, IKafkaSerializerFactory serializerFactory) : this(new ProducerBuilderWrapper <TKey, TValue>(connection), serializerFactory) { }