コード例 #1
0
        /// <summary>
        /// 响应接收数据
        /// </summary>
        protected void OnRecvMsg(string msgData, Dictionary <string, object> properties)
        {
            try
            {
                MQMsgPack msgPack = new MQMsgPack();

                msgPack.MsgData = msgData;



                msgPack.Properties = properties;
                //将接收到的消息压入接收队列
                msgQueue.Enqueue(msgPack);
                this.newDataEvent.Set();
            }
            catch (System.Exception ex)
            {
            }
        }
コード例 #2
0
        /// <summary>
        /// 响应接收数据
        /// </summary>
        protected void OnRecvMsg(string msgData, Dictionary<string, object> properties)
        {
            try
            {
                MQMsgPack msgPack = new MQMsgPack();

                msgPack.MsgData = msgData;

                msgPack.Properties = properties;
                //将接收到的消息压入接收队列
                msgQueue.Enqueue(msgPack);
                this.newDataEvent.Set();
            }
            catch (System.Exception ex)
            {

            }
        }