AzureIoTHubConnectedService.AccountPickerViewModel.SetAccountAsync C# (CSharp) Method

SetAccountAsync() public method

public SetAccountAsync ( Account value ) : System.Threading.Tasks.Task
value Account
return System.Threading.Tasks.Task
        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();
            }
        }