/// <summary> /// Инициализирует экземпляр фабрикой, создающей <see cref="IAdvancedBus" />, /// переменной типа <see cref="QueueConfigurationBase" /> /// и признаком необходимости проводить диагностику /// </summary> /// <param name="advancedBusFactory">Фабрика для создания <see cref="IAdvancedBus" /></param> /// <param name="configuration">Конфигурация очереди</param> /// <param name="logger">Интерфейс логгирования</param> public RabbitMqQueueMessageAdapter( IAdvancedBusFactory advancedBusFactory, RabbitMqQueueConfiguration configuration, ILogger <RabbitMqQueueMessageAdapter> logger) { _logger = logger; _advancedBusFactory = advancedBusFactory; _configuration = configuration; }
/// <inheritdoc /> public RabbitMqQueueMessageAdapterConstructor( IAdvancedBusFactory advancedBusFactory, IConfiguration configuration, ILoggerFactory loggerFactory) : base(configuration, "rabbitmq") { _loggerFactory = loggerFactory; _advancedBusFactory = advancedBusFactory.ThrowIfNull(nameof(advancedBusFactory)); }
public RabbitMqQueueMessageAdapterBuilder WithBusFactory(IAdvancedBusFactory factory) { _busFactory = factory; return(this); }