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!"); }
public EventProcessorFactory(ILoggerFactory loggerFactory, MessageConverter messageConverter, InfluxInjector influxInjector) { _mc = messageConverter ?? throw new ArgumentNullException(); _ii = influxInjector ?? throw new ArgumentNullException(); _loggerFactory = loggerFactory ?? throw new ArgumentNullException(); }