Example #1
0
 /// <summary>
 /// 注册,接收消息
 /// </summary>
 /// <param name="messageType"></param>
 /// <param name="handler"></param>
 protected void ReceiveMessage(string messageType, MessageCenter.DealMessageDelivery handler)
 {
     MessageCenter.AddMsgListener(messageType, handler);
 }
Example #2
0
        protected void SendMessage(string MESSAGE_Type, string key, object value)
        {
            KeyValueUpdate kvs = new KeyValueUpdate(key, value);

            MessageCenter.SendMessage(MESSAGE_Type, kvs);
        }