Example #1
0
 public void Cleanup()
 {
     if (_isLogin)
     {
         _api.UserLogout(-4);
     }
     else if (_isConnected)
     {
         _api.Disconnect();
     }
     Thread.Sleep(100);
 }
Example #2
0
        /// <summary>
        /// 用户登出
        /// </summary>
        /// <param name="callback">登出回调</param>
        public void UserLogout(DataCallback callback)
        {
            int requestID = AddCallback(callback, -4);

            _api.UserLogout(requestID);
        }