public RabbitServerCommunication( ILogger <RabbitServerCommunication> log, IRabbitmqConnection connection, RabbitServerOptions option, IRabbitDelayConfig delayConfig) { _log = log; _connection = connection; _option = option ?? throw new ArgumentNullException(nameof(option), "RabbitMQ settings not set."); _delayConfig = delayConfig; _queue = _option.Queue.Uri.Host; _errorQueue = _option.ErrorQueue == null ? null : QueueNameExtensions.GetQueue(_option.Queue.Uri, _option.ErrorQueue.Uri); _delayQueue = _option.DefaultDelayQueue == null ? null : QueueNameExtensions.GetQueue(_option.Queue.Uri, _option.DefaultDelayQueue.Uri); }
public RabbitConverter(ILogger <RabbitConverter> log, IBasicDeliverEventArgsValidator validator, RabbitServerOptions options) { _log = log; _validator = validator; _options = options; }