Exemplo n.º 1
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal ConsumerProcessor(Abstract.Consumer consumer, Action <valueType> onMessage) : base(consumer)
 {
     messageHandle  = messageLoop;
     this.onMessage = onMessage;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 /// <param name="onMessage">消息处理委托</param>
 internal ConsumerProcessor(Abstract.Consumer consumer, ValueData.GetData <valueType> getValue, ValueData.DataType dataType, Action <valueType> onMessage) : base(consumer, getValue, dataType)
 {
     messageHandle  = messageLoop;
     this.onMessage = onMessage;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 /// <param name="onMessage">消息处理委托</param>
 internal ConsumerProcessorAsynchronous(Abstract.Consumer consumer, ValueData.GetData <valueType> getValue, ValueData.DataType dataType, Action <valueType, Action> onMessage) : base(consumer, getValue, dataType)
 {
     messageHandle            = messageStart;
     onMessageCompletedHandle = onMessageCompleted;
     this.onMessage           = onMessage;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal ConsumerProcessorAsynchronous(Abstract.Consumer consumer, Action <valueType, Action> onMessage) : base(consumer)
 {
     messageHandle            = messageStart;
     onMessageCompletedHandle = onMessageCompleted;
     this.onMessage           = onMessage;
 }
Exemplo n.º 5
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 internal ConsumerStreamProcessor(Abstract.Consumer consumer, Action <valueType> onMessage, ValueData.GetData <valueType> getValue, ValueData.DataType dataType) : base(consumer)
 {
     this.onMessage = onMessage;
     this.getValue  = getValue;
     this.dataType  = dataType;
 }
Exemplo n.º 6
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal ConsumerStreamProcessor(Abstract.Consumer consumer, Action <valueType> onMessage) : base(consumer)
 {
     this.onMessage = onMessage;
     getValue       = ValueData.Data <valueType> .GetData;
     dataType       = ValueData.Data <valueType> .DataType;
 }
Exemplo n.º 7
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 internal ConsumerProcessor(Consumer consumer) : base(consumer)
 {
 }