/// <summary> /// Initializes a new instance of the <see cref="BytesPublisher" /> class. /// </summary> /// <param name="channel">rabbitmq connection channel</param> /// <param name="logger">injected logger</param> public BytesPublisher(IAmqpPublisher channel, ILogger logger) : base(channel, new Bytes(), logger) { Arguments.NotNull(channel, nameof(channel)); Arguments.NotNull(logger, nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="AdvancedPublisher{TMessage}" /> class. /// </summary> /// <param name="channel">rabbitmq connection channel</param> /// <param name="protocol">protocol to encode message with</param> /// <param name="logger">injected logger</param> public AdvancedPublisher(IAmqpPublisher channel, IAmqpMessageProtocol <TMessage> protocol, ILogger logger) : base(logger) { this.Channel = Arguments.EnsureNotNull(channel, nameof(channel)); this.protocol = Arguments.EnsureNotNull(protocol, nameof(protocol)); }