MyDriving.ViewModel.LoginViewModel.ExecuteLoginMicrosoftCommandAsync C# (CSharp) Method

ExecuteLoginMicrosoftCommandAsync() public method

public ExecuteLoginMicrosoftCommandAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task ExecuteLoginMicrosoftCommandAsync()
        {
            if (client == null || IsBusy)
                return;

            Settings.LoginAccount = LoginAccount.Microsoft;
            var track = Logger.Instance.TrackTime("LoginMicrosoft");
            track?.Start();
            IsLoggedIn = await LoginAsync(MobileServiceAuthenticationProvider.MicrosoftAccount);
            track?.Stop();
            Logger.Instance.Track("LoginMicrosoft");
        }