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;
 }
Example #3
0
 public EventHubService(IHandlerActivator handlerActivator,
                        IExceptionLogger exceptionLogger,
                        IEventHubSettings settings,
                        IHubEventErrorBus hubEventErrorBus,
                        IHubCommandErrorBus hubCommandErrorBus,
                        ILogger logger)
 {
     _handlerActivator   = handlerActivator;
     _exceptionLogger    = exceptionLogger;
     _settings           = settings;
     _hubEventErrorBus   = hubEventErrorBus;
     _hubCommandErrorBus = hubCommandErrorBus;
     _logger             = logger;
     foreach (var connection in _settings.AzureEventHubConnectionStrings)
     {
         _connectionStrings.Add(connection.Namespace, connection.ConnectionString);
     }
 }