public RabbitMQInputChannel(BindingContext context, IModel model, EndpointAddress address, QueueSettings queueSettings)
     : base(context, address)
 {
     m_bindingElement = context.Binding.Elements.Find<RabbitMQTransportBindingElement>();
     TextMessageEncodingBindingElement encoderElem = context.BindingParameters.Find<TextMessageEncodingBindingElement>();
     encoderElem.ReaderQuotas.MaxStringContentLength = (int)m_bindingElement.MaxReceivedMessageSize;
     if (encoderElem != null) {
         m_encoder = encoderElem.CreateMessageEncoderFactory().Encoder;
     }
     m_model = model;
     m_messageQueue = null;
     this.queueSettings = queueSettings;
 }
 public QueueSettingsValidator(QueueSettings queueSettings)
 {
     this.queueSettings = queueSettings;
 }