public EventHubServiceBuilder(
     IHandlerActivator handlerActivator,
     IEventHubSettings settings,
     ILogger logger,
     IExceptionLogger exceptionLogger,
     IHubEventErrorBus hubEventErrorBus,
     IHubCommandErrorBus hubCommandErrorBus)
 {
     _handlerActivator   = handlerActivator;
     _settings           = settings;
     _logger             = logger;
     _exceptionLogger    = exceptionLogger;
     _hubEventErrorBus   = hubEventErrorBus;
     _hubCommandErrorBus = hubCommandErrorBus;
 }
 public EventHubProcessor(IEventHubSettings settings,
                          IHandlerActivator handlerActivator,
                          IExceptionLogger exceptionLogger,
                          IHubEventErrorBus hubEventErrorBus,
                          IHubCommandErrorBus hubCommandErrorBus,
                          IDictionary <Type, Type> commandHandlers,
                          IDictionary <Type, ISet <Type> > eventHandlers,
                          ILogger logger)
 {
     _settings           = settings;
     _handlerActivator   = handlerActivator;
     _exceptionLogger    = exceptionLogger;
     _hubEventErrorBus   = hubEventErrorBus;
     _hubCommandErrorBus = hubCommandErrorBus;
     _commandHandlers    = commandHandlers;
     _eventHandlers      = eventHandlers;
     _logger             = logger;
 }