Ejemplo n.º 1
0
 /// <summary>
 ///   Адаптер с поддержкой транзакций, реализующий взаимодействие с очередью ActiveMQ
 /// </summary>
 /// <param name="connectionFactory">Фабрика подключений</param>
 /// <param name="queueConfiguration">Параметры очереди</param>
 /// <param name="logger">Сервис логирования</param>
 public ActiveMqQueueTransactedMessageAdapter(IActiveMqConnectionFactory connectionFactory,
                                              ActiveMqQueueConfiguration queueConfiguration,
                                              ILogger logger)
     : base(connectionFactory, queueConfiguration, logger)
 {
     _queueConfiguration = queueConfiguration.ThrowIfNull(nameof(queueConfiguration));
 }
 /// <summary>
 ///   Конструктор адаптера
 /// </summary>
 /// <param name="connectionFactory">Фабрика подключений</param>
 /// <param name="queueConfiguration">Параметры очереди</param>
 /// <param name="logger">Сервис логирования</param>
 public ActiveMqQueueMessageAdapter(IActiveMqConnectionFactory connectionFactory,
                                    ActiveMqQueueConfiguration queueConfiguration,
                                    ILogger logger)
 {
     _connectionFactory = connectionFactory.ThrowIfNull(nameof(connectionFactory));
     _configuration     = queueConfiguration.ThrowIfNull(nameof(queueConfiguration));
     _logger            = logger.ThrowIfNull(nameof(logger));
 }