Exemplo n.º 1
0
        public IModel CreateConsumerChannelByConfig(ConsumerConfigInfo consumerConfigInfo)
        {
            IModel channel = this.CreateChannel();

            channel.QueueDeclare(consumerConfigInfo.QueueName, consumerConfigInfo.QueueDurable, false, false, (IDictionary <string, object>)null);
            return(channel);
        }
Exemplo n.º 2
0
 public Consumer(string uri, ConsumerConfigInfo consumerConfigInfo)
 {
     this.lockObj            = new object();
     this.uri                = uri;
     this.consumerConfigInfo = consumerConfigInfo;
 }