/// <summary> /// Конструктор. /// </summary> /// <param name="configuration">Конфигурации RabbitMQ.</param> public RabbitMessageSender(RabbitConfiguration configuration) { this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }
/// <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)); }