public RabbitMQMessageBusBroker(IRabbitMQConnectionProvider rabbitMQConnectionProvider, IHostNameProvider hostNameProvider)
 {
     _rabbitMQConnectionProvider = rabbitMQConnectionProvider;
     _hostNameProvider           = hostNameProvider;
     _connectionString           = _rabbitMQConnectionProvider.GetConnectionString(ConnectionStringKey);
     _connection = _rabbitMQConnectionProvider.GetConnection(_connectionString);
 }
 public RabbitMQExchangeHostedService(
     IOptions <RabbitMQOptions> options,
     IRabbitMQConnectionProvider connectionProvider)
 {
     this.options            = options.Value;
     this.connectionProvider = connectionProvider;
 }
Ejemplo n.º 3
0
 public RabbitMQConsumerHostedService(
     IServiceProvider serviceProvider,
     IOptions <RabbitMQOptions> options,
     IRabbitMQConnectionProvider connectionProvider)
 {
     this.options            = options.Value;
     this.serviceProvider    = serviceProvider;
     this.connectionProvider = connectionProvider;
 }
Ejemplo n.º 4
0
 public RabbitMQMessageService(IRabbitMQConnectionProvider connectionProvider)
 {
     ConnectionProvider = connectionProvider;
 }
Ejemplo n.º 5
0
 public RabbitMQNotificationProvider(IRabbitMQConnectionProvider rabbitMQConnectionProvider)
 {
     _rabbitMQConnectionProvider = rabbitMQConnectionProvider;
     T = NullLocalizer.Instance;
 }