コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <inheritdoc />
 public RabbitMqQueueMessageAdapterConstructor(
     IAdvancedBusFactory advancedBusFactory,
     IConfiguration configuration,
     ILoggerFactory loggerFactory) :
     base(configuration, "rabbitmq")
 {
     _loggerFactory      = loggerFactory;
     _advancedBusFactory = advancedBusFactory.ThrowIfNull(nameof(advancedBusFactory));
 }
コード例 #3
0
 public RabbitMqQueueMessageAdapterBuilder WithBusFactory(IAdvancedBusFactory factory)
 {
     _busFactory = factory;
     return(this);
 }