protected BaseBus(string hostName, AmqSettings amqSettings, ILogger logger) { HostName = hostName; AmqSettings = amqSettings; _logger = logger; _factory = new ConnectionFactory(hostName, $"Adcosts-{Guid.NewGuid()}"); _reconnectInterval = amqSettings.ReconnectInterval != 0 ? amqSettings.ReconnectInterval : _reconnectInterval; _disposableReources = new List <IDisposable>(); }
public MessageReceiver(string hostName, AmqSettings amqSettings, ILogger logger, ILifetimeScope lifetimeScope) : base(hostName, amqSettings, logger) { _logger = logger; _lifetimeScope = lifetimeScope; }