public async Task SetAccountAsync(Account value)
{
this.accountInitialized = true;
if (!AccountKey.KeyComparer.Equals(this.accountKey, value))
{
this.accountKey = value;
this.IsAuthenticated = value != null && !value.NeedsReauthentication;
await this.authenticationManager.SetCurrentVSAccountAsync(value);
this.OnAuthenticationChanged();
}
}