/// <summary> /// Log user out of LinkedIn. /// </summary> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task LogoutAsync() { var credential = _passwordManager.Get(LinkedInConstants.STORAGEKEYACCESSTOKEN); if (credential != null) { _passwordManager.Remove(LinkedInConstants.STORAGEKEYACCESSTOKEN); await _storageManager.SetAsync(LinkedInConstants.STORAGEKEYUSER, null); } LoggedIn = false; }
/// <summary> /// Log user out of LinkedIn. /// </summary> public void Logout() { var crendential = _passwordManager.Get(LinkedInConstants.STORAGEKEYACCESSTOKEN); if (crendential != null) { _passwordManager.Remove(LinkedInConstants.STORAGEKEYACCESSTOKEN); _storageManager.Set(LinkedInConstants.STORAGEKEYUSER, null); } LoggedIn = false; }
/// <summary> /// Log user out of Weibo. /// </summary> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task LogoutAsync() { var credential = _passwordManager.Get(PasswordKey); if (credential != null) { _passwordManager.Remove(PasswordKey); await _storageManager.SetAsync(StorageKey, null); } Uid = null; LoggedIn = false; }
/// <summary> /// Log user out of Twitter. /// </summary> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task LogoutAsync() { var credential = _passwordManager.Get("TwitterAccessToken"); if (credential != null) { _passwordManager.Remove("TwitterAccessToken"); await _storageManager.SetAsync("TwitterScreenName", null); } UserScreenName = null; LoggedIn = false; }
/// <summary> /// Log user out of Twitter. /// </summary> public void Logout() { var credential = _passwordManager.Get("TwitterAccessToken"); if (credential != null) { _passwordManager.Remove("TwitterAccessToken"); _storageManager.Set("TwitterScreenName", null); UserScreenName = null; } LoggedIn = false; }
/// <summary> /// Log user out of Weibo. /// </summary> public void Logout() { var credential = _passwordManager.Get(PasswordKey); if (credential != null) { _passwordManager.Remove(PasswordKey); _storageManager.Set(StorageKey, null); Uid = null; } LoggedIn = false; }