/// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal QueueConsumerProcessorAsynchronous(Abstract.QueueConsumer consumer, Action <valueType, Action> onMessage) : base(consumer)
 {
     messageHandle            = messageStart;
     onMessageCompletedHandle = onMessageCompleted;
     this.onMessage           = onMessage;
 }
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 /// <param name="onMessage">消息处理委托</param>
 internal QueueConsumerProcessorAsynchronous(Abstract.QueueConsumer consumer, ValueData.GetData <valueType> getValue, ValueData.DataType dataType, Action <valueType, Action> onMessage) : base(consumer, getValue, dataType)
 {
     messageHandle            = messageStart;
     onMessageCompletedHandle = onMessageCompleted;
     this.onMessage           = onMessage;
 }
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 /// <param name="onMessage">消息处理委托</param>
 internal QueueConsumerProcessor(Abstract.QueueConsumer consumer, ValueData.GetData <valueType> getValue, ValueData.DataType dataType, Action <valueType> onMessage) : base(consumer, getValue, dataType)
 {
     messageHandle  = messageLoop;
     this.onMessage = onMessage;
 }
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal QueueConsumerProcessor(Abstract.QueueConsumer consumer, Action <valueType> onMessage) : base(consumer)
 {
     messageHandle  = messageLoop;
     this.onMessage = onMessage;
 }
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 internal QueueConsumerStreamProcessor(QueueConsumer consumer)
 {
     this.consumer = consumer;
 }
Example #6
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 /// <param name="getValue">获取参数数据委托</param>
 /// <param name="dataType">数据类型</param>
 internal QueueConsumerStreamProcessor(Abstract.QueueConsumer consumer, Action <valueType> onMessage, ValueData.GetData <valueType> getValue, ValueData.DataType dataType) : base(consumer)
 {
     this.onMessage = onMessage;
     this.getValue  = getValue;
     this.dataType  = dataType;
 }
Example #7
0
 /// <summary>
 /// 消息队列 客户端消费者 处理器
 /// </summary>
 /// <param name="consumer">消息队列 客户端消费者</param>
 /// <param name="onMessage">消息处理委托</param>
 internal QueueConsumerStreamProcessor(Abstract.QueueConsumer consumer, Action <valueType> onMessage) : base(consumer)
 {
     this.onMessage = onMessage;
     getValue       = ValueData.Data <valueType> .GetData;
     dataType       = ValueData.Data <valueType> .DataType;
 }