/// <summary> 取消登录 </summary> public void CancelLogin() { lock (mLockObj) { ThreadUtil.Interrupt(mTaskThread); if (mCurrentHttpTask != null) { mCurrentHttpTask.Cancel(); } setLoginState(STATE_LOGIN_CANCEL); mTaskThread = null; } }
/// <summary> 登出 </summary> public void Logout() { lock (mLockObj) { ThreadUtil.Interrupt(mTaskThread); if (mCurrentHttpTask != null) { mCurrentHttpTask.Cancel(); } setLoginState(STATE_LOGOUT_ACTIVE); mTaskThread = null; } }
public void LogoutForAccountClosure() { lock (mLockObj) { ThreadUtil.Interrupt(mTaskThread); if (mCurrentHttpTask != null) { mCurrentHttpTask.Cancel(); } setLoginState(STATE_LOGOUT_FORCED_ACCOUNT_CLOSURE); mTaskThread = null; } }