示例#1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="configuration">Конфигурации RabbitMQ.</param>
 public RabbitMessageSender(RabbitConfiguration configuration)
 {
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
示例#2
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="configuration">Конфигурация RabbitMQ.</param>
 /// <param name="serviceScopeFactory">Фабрика для создания экземпляров <see cref="IServiceScope"/>.</param>
 /// <param name="logger">Логирования.</param>
 public RabbitMessageReceiver(RabbitConfiguration configuration, IServiceScopeFactory serviceScopeFactory, ILogger <RabbitMessageReceiver <TMessage, TMessageHandler> > logger)
     : base(serviceScopeFactory, logger)
 {
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }