private void RegisterConsumer()
 {
     this._messageConsumer = MessageConsumer.Instance(this._queue, false);
     this._messageConsumer.ReceiveOnly(this.ListensTo(), new ExchangeMessageListener(MessageListener.Type.Text, this));
 }
 public DispatchingConsumer(IModel model, MessageListener messageListener, IEnumerable<string> filteredMessageTypes,
     bool autoAcknowledged, MessageConsumer messageConsumer)
     : base(model)
 {
     this.MessageListener = messageListener;
     this.FilteredMessageTypes = filteredMessageTypes;
     this.AutoAcknowledged = autoAcknowledged;
     this.MessageConsumer = messageConsumer;
 }