Beispiel #1
0
 public RabbitPublicationService(
     IStarsLogger logger,
     IRabbitConnectionService rabbitConnectionService)
 {
     _logger = logger;
     _rabbitConnectionService = rabbitConnectionService;
 }
Beispiel #2
0
 public RabbitMQBus(IMediator mediator, IServiceScopeFactory serviceScopeFactory,
                    IRabbitConnectionService rabbitConnectionService = null)
 {
     _mediator                = mediator;
     _scopeFactory            = serviceScopeFactory;
     _rabbitConnectionService = rabbitConnectionService ?? new RabbitMqDefaultConnectionService();
     _handlers                = new Dictionary <string, List <Type> >();
     _eventTypes              = new List <Type>();
 }
Beispiel #3
0
 public RabbitConsumptionService(
     IStarsLogger logger,
     IRabbitConnectionService rabbitConnectionService,
     IEnumerable <IInterserviceMessageConsumer> messageConsumers)
 {
     _logger = logger;
     _rabbitConnectionService   = rabbitConnectionService;
     _messageConsumerDictionary = messageConsumers
                                  .ToDictionary(messageConsumer => messageConsumer.MessageType);
 }