public RabbitMQPublisher(IMessageBrokerConfiguration connectionConfiguration) { _connectionConfiguration = connectionConfiguration; var factory = new ConnectionFactory() { HostName = _connectionConfiguration.Host, UserName = _connectionConfiguration.UserName, Password = _connectionConfiguration.Password, Port = _connectionConfiguration.Port, VirtualHost = _connectionConfiguration.VirtualHost }; _connection = factory.CreateConnection(); }
public RabbitMQConsumer( IMessageBrokerConfiguration connectionConfig, RabbitMQConsumerConfiguration config, IMediator mediator) { _config = config; _connectionConfig = connectionConfig; var factory = new ConnectionFactory() { HostName = _connectionConfig.Host, UserName = _connectionConfig.UserName, Password = _connectionConfig.Password, VirtualHost = _connectionConfig.VirtualHost, Port = _connectionConfig.Port }; _connection = factory.CreateConnection(); _channel = _connection.CreateModel(); ConfigureChannel(); _mediator = mediator; }
public MessageBrokerManagementRepository(IMessageBrokerConfiguration configuration) { Verify.IsNotNull(nameof(configuration), configuration); _configuration = configuration; }
public MessageBrokerAdministrationRepository(IMessageBrokerConfiguration configuration) { Verify.IsNotNull(nameof(configuration), configuration); _configuration = configuration; }