public void VerifyCredentials() { try { this.VerifyCredentialsAsync().Wait(); } catch (AggregateException ex) when (ex.InnerException is WebApiException) { throw new WebApiException(ex.InnerException.Message, ex); } }
private void RefreshAccount(UserAccount account) { using (var t = new Twitter(account)) { t.VerifyCredentials(); account.UserId = t.UserId; account.Username = t.Username; account.ProfileImageUrl = t.ProfileImageUrl; } UserAccountsCheckedListBox.Refresh(); }