Exemple #1
0
 public ProducerBuilder(string producerName, ProducerConfiguration configuration, OutgoingMessageRegistry messageRegistry)
 {
     _messageRegistry      = messageRegistry;
     _producerName         = producerName;
     _kafkaProducerFactory = configuration.KafkaProducerFactory;
     _messageIdGenerator   = configuration.MessageIdGenerator;
 }
Exemple #2
0
 internal Producer(KafkaProducer kafkaProducer, OutgoingMessageRegistry outgoingMessageRegistry, MessageIdGenerator messageIdGenerator)
 {
     _kafkaProducer            = kafkaProducer;
     _payloadDescriptorFactory = new PayloadDescriptorFactory(outgoingMessageRegistry, messageIdGenerator);
 }
 public PayloadDescriptorFactory(OutgoingMessageRegistry outgoingMessageRegistry, MessageIdGenerator messageIdGenerator)
 {
     _outgoingMessageRegistry = outgoingMessageRegistry;
     _messageIdGenerator      = messageIdGenerator;
 }
Exemple #4
0
 public OutgoingMessageFactory(IOutgoingMessageRegistry outgoingMessageRegistry, MessageIdGenerator messageIdGenerator)
 {
     _outgoingMessageRegistry = outgoingMessageRegistry;
     _messageIdGenerator      = messageIdGenerator;
 }
Exemple #5
0
 public Producer(IKafkaProducer kafkaProducer, IOutgoingMessageRegistry outgoingMessageRegistry, MessageIdGenerator messageIdGenerator)
 {
     _kafkaProducer          = kafkaProducer;
     _outgoingMessageFactory = new OutgoingMessageFactory(outgoingMessageRegistry, messageIdGenerator);
 }