Пример #1
0
 // 用户注销回调函数定义
 void OnUserLogoutActionExCallBack(int userId, int errorcode, int userValue)
 {
     try
     {
         //从用户对象集中移除
         foreach (UserInfo u in users)
         {
             if (u.Id == userId)
             {
                 users.Remove(u);
                 break;
             }
         }
         // 核心服务器会通知其它用户(如果是好友),提示好友下线,不需要业务服务器干预
         OnUserLogoutActionEx_Received_main = new SystemSettingServer.OnUserLogoutActionEx_Received(OnUserLogoutActionExCallBack_main);
         this.rtb_message.Invoke(OnUserLogoutActionEx_Received_main, userId, errorcode, userValue);
     }
     catch (Exception ex)
     {
         Log.SetLog("OnUserLogoutActionCallBack         用户注销错误:" + ex.Message.ToString());
     }
 }
Пример #2
0
 // 用户注销回调函数定义
 void OnUserLogoutActionExCallBack(int userId, int errorcode, int userValue)
 {
     OnUserLogoutActionEx_Received_main = new SystemSettingServer.OnUserLogoutActionEx_Received(OnUserLogoutActionExCallBack_main);
     this.rtb_message.Invoke(OnUserLogoutActionEx_Received_main, userId, errorcode, userValue);
 }
Пример #3
0
 // 用户注销回调函数定义
 void OnUserLogoutActionExCallBack(int userId, int errorcode, int userValue)
 {
     OnUserLogoutActionEx_Received_main = new SystemSettingServer.OnUserLogoutActionEx_Received(OnUserLogoutActionExCallBack_main);
     this.rtb_message.Invoke(OnUserLogoutActionEx_Received_main, userId, errorcode, userValue);
 }
Пример #4
0
        // 用户注销回调函数定义
        void OnUserLogoutActionExCallBack(int userId, int errorcode, int userValue)
        {
            try
            {

                //从用户对象集中移除
                foreach (UserInfo u in users)
                {
                    if (u.Id == userId)
                    {
                        users.Remove(u);
                        break;
                    }
                }
                // 核心服务器会通知其它用户(如果是好友),提示好友下线,不需要业务服务器干预
                OnUserLogoutActionEx_Received_main = new SystemSettingServer.OnUserLogoutActionEx_Received(OnUserLogoutActionExCallBack_main);
                this.rtb_message.Invoke(OnUserLogoutActionEx_Received_main, userId, errorcode, userValue);
            }
            catch (Exception ex)
            {
                Log.SetLog("OnUserLogoutActionCallBack         用户注销错误:" + ex.Message.ToString());
            }
        }