Exemplo n.º 1
0
 public ConsumerHostedService(IOptions <KafkaConfig> options, ITenantDa tenantDa, NebulaService nebulaService, ILoggerFactory loggerFactory)
 {
     _options       = options;
     _tenantDa      = tenantDa;
     _nebulaService = nebulaService;
     _loggerFactory = loggerFactory;
 }
Exemplo n.º 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);
 }