コード例 #1
0
 internal KafkaProducer(
     IProducerBuilderWrapper <TKey, TValue> producerBuilder,
     IKafkaSerializerFactory serializerFactory)
 {
     producerBuilder.SetValueSerializer(serializerFactory.GetValueSerializer <TValue>());
     _producer = producerBuilder.Build();
 }
コード例 #2
0
 public KafkaProducer(KafkaProducerConnection connection, IKafkaSerializerFactory serializerFactory)
     : this(new ProducerBuilderWrapper <TKey, TValue>(connection), serializerFactory)
 {
 }