Пример #1
0
 public EventProcessor(ILogger <EventProcessor> logger, MessageConverter mg, InfluxInjector influxInjector)
 {
     _logger = logger ?? throw new ArgumentNullException();
     _mg     = mg ?? throw new ArgumentNullException();
     _ii     = influxInjector ?? throw new ArgumentNullException();
     _logger.LogInformation("EventProcessor created!");
 }
Пример #2
0
 public EventProcessorFactory(ILoggerFactory loggerFactory, MessageConverter messageConverter, InfluxInjector influxInjector)
 {
     _mc            = messageConverter ?? throw new ArgumentNullException();
     _ii            = influxInjector ?? throw new ArgumentNullException();
     _loggerFactory = loggerFactory ?? throw new ArgumentNullException();
 }