示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MQEndPoint"/> class.
 /// MQ的节点
 /// </summary>
 /// <param name="mQueue">mQueue</param>
 public MQEndPoint(MQueue mQueue)
 {
     _mQueue = mQueue;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Consumer"/> class.
 /// 实现一个消费者
 /// </summary>
 /// <param name="mQueue">mQueue</param>
 public PullConsumer(MQueue mQueue)
     : base(mQueue)
 {
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Consumer"/> class.
 /// 实现一个消费者
 /// </summary>
 /// <param name="mQueue">mQueue</param>
 public Consumer(MQueue mQueue)
     : base(mQueue)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Publisher"/> class.
 /// 发布一个消息
 /// </summary>
 /// <param name="mQueue">队列</param>
 /// <param name="msg">消息内容</param>
 public Publisher(MQueue mQueue, string msg)
     : base(mQueue)
 {
     this._msg = msg;
 }