/********************************
*
* 作者:吴隆健
* 创建时间: 2019/6/25 11:13:36
*
********************************/
using System;
using System.Collections.Generic;
using RabbitMQ.Client;
namespace MrWu.RabbitMQ {
///
/// 消费者
///
public class Consumer {
///
/// 消费者队列
///
public string queue;
///
/// 是否不需要确认
///
public bool noAck = true;
///
/// 消息者标记
///
public string consumertag {
get;
internal set;
}
///
/// 消费者同时接收的消息数量
///
public ushort prefetchCount = 0;
///
/// 是否不接收本地
///
public bool noLoacl;
///
/// 是否独占
///
public bool exclusive;
///
/// 额外参数
///
public IDictionary arguments;
///
/// 消费者信道
///
internal IModel channel;
///
/// 接收到消息
///
public MessageHandle Receive;
}
}