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); }); }
public MessageQueueService(IServiceProvider serviceProvider, RabbitMqConfiguration configuration) : base(serviceProvider, configuration) { }