protected BrokerChannel(BrokerChannel brokerChannel, string name)
 {
     this._host = brokerChannel._host;
     this.Name = name;
     this._connection = brokerChannel._connection;
     this.Channel = brokerChannel.Channel;
 }
        public Queue(BrokerChannel brokerChannel, string name, bool durable, bool exclusive, bool autoDeleted)
            : base(brokerChannel)
        {
            this.Durable = durable;

            QueueDeclareOk result = this.Channel.QueueDeclare(name, durable, exclusive, autoDeleted, null);

            this.Name = result.QueueName;
        }
 public static MessageProducer CreateProducer(BrokerChannel brokerChannel)
 {
     return new MessageProducer(brokerChannel);
 }
 public MessageProducer(BrokerChannel brokerChannel)
 {
     this._brokerChannel = brokerChannel;
 }
 protected BrokerChannel(BrokerChannel brokerChannel)
     : this(brokerChannel, null)
 {
 }