public KafkaInputChannelConsumer(IOptions <KafkaConfig> options,
                                  ILoggerFactory logger, string topicName, IPublishMessageLogic publishMessageLogic) : base(options, logger,
                                                                                                                            ConsumerDiagnosticProvider.GetStat(typeof(KafkaInputChannelConsumer).FullName, topicName), topicName)
 {
     _publishMessageLogic = publishMessageLogic;
     _logger = logger.CreateLogger(nameof(KafkaInputChannelConsumer));
     Initialize(new List <KeyValuePair <string, object> >(), MessageReceived);
 }
Пример #2
0
 public HttpPushOutgoingMessageConsumer(IOptions <KafkaConfig> options, NebulaService nebulaService,
                                        ILoggerFactory logger, string topicName) : base(options, logger,
                                                                                        ConsumerDiagnosticProvider.GetStat(typeof(HttpPushOutgoingMessageConsumer).FullName, topicName), topicName)
 {
     _nebulaService = nebulaService;
     _logger        = logger.CreateLogger(nameof(HttpPushOutgoingMessageConsumer));
     Initialize(new List <KeyValuePair <string, object> >(), MessageReceived);
 }