/// <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) { } }
/// <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) { } }