public IModel CreateConsumerChannelByConfig(ConsumerConfigInfo consumerConfigInfo) { IModel channel = this.CreateChannel(); channel.QueueDeclare(consumerConfigInfo.QueueName, consumerConfigInfo.QueueDurable, false, false, (IDictionary <string, object>)null); return(channel); }
public Consumer(string uri, ConsumerConfigInfo consumerConfigInfo) { this.lockObj = new object(); this.uri = uri; this.consumerConfigInfo = consumerConfigInfo; }