コード例 #1
0
 private void ClientStateReport(CMPP30Client clien, CMPP_DELIVER_Msg_Content content)
 {
     if (this.StateReport != null)
     {
         StateReport(this, content);
     }
 }
コード例 #2
0
        /// <summary>
        /// 线程池调用处理上行 或 状态
        /// </summary>
        /// <param name="obj"></param>
        private void ThreadPoolExcuteFuctione(object obj)
        {
            CMPP_DELIVER deliver = obj as CMPP_DELIVER;

            if (deliver.Registered_Delivery == 0 && UserMessageRecive != null)
            {
                UserMessageRecive(this, deliver);
            }
            else if (StateReport != null)
            {
                CMPP_DELIVER_Msg_Content content = new CMPP_DELIVER_Msg_Content();
                content.ReadMessage(deliver.Msg_Content);
                StateReport(this, content);
            }
        }