Esempio n. 1
0
        /// <summary> 取消登录 </summary>
        public void CancelLogin()
        {
            lock (mLockObj)
            {
                ThreadUtil.Interrupt(mTaskThread);

                if (mCurrentHttpTask != null)
                {
                    mCurrentHttpTask.Cancel();
                }

                setLoginState(STATE_LOGIN_CANCEL);
                mTaskThread = null;
            }
        }
Esempio n. 2
0
        /// <summary> 登出 </summary>
        public void Logout()
        {
            lock (mLockObj)
            {
                ThreadUtil.Interrupt(mTaskThread);

                if (mCurrentHttpTask != null)
                {
                    mCurrentHttpTask.Cancel();
                }

                setLoginState(STATE_LOGOUT_ACTIVE);
                mTaskThread = null;
            }
        }
Esempio n. 3
0
        public void LogoutForAccountClosure()
        {
            lock (mLockObj)
            {
                ThreadUtil.Interrupt(mTaskThread);

                if (mCurrentHttpTask != null)
                {
                    mCurrentHttpTask.Cancel();
                }

                setLoginState(STATE_LOGOUT_FORCED_ACCOUNT_CLOSURE);
                mTaskThread = null;
            }
        }