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