Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }