public RabbitPublicationService( IStarsLogger logger, IRabbitConnectionService rabbitConnectionService) { _logger = logger; _rabbitConnectionService = rabbitConnectionService; }
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>(); }
public RabbitConsumptionService( IStarsLogger logger, IRabbitConnectionService rabbitConnectionService, IEnumerable <IInterserviceMessageConsumer> messageConsumers) { _logger = logger; _rabbitConnectionService = rabbitConnectionService; _messageConsumerDictionary = messageConsumers .ToDictionary(messageConsumer => messageConsumer.MessageType); }