예제 #1
0
        public RabbitMqBus(IServiceProvider serviceProvider, RabbitMqConfiguration configuration)
        {
            _serviceProvider = serviceProvider;
            _configuration   = configuration;

            _bus = Bus.Factory.CreateUsingRabbitMq(cfg =>
            {
                var host = cfg.Host(new Uri(_configuration.Host), h =>
                {
                    h.Username(_configuration.Username);
                    h.Password(_configuration.Password);
                });

                Configure(cfg, host);
            });
        }
예제 #2
0
 public MessageQueueService(IServiceProvider serviceProvider, RabbitMqConfiguration configuration)
     : base(serviceProvider, configuration)
 {
 }