Example #1
0
        private async Task LoginAsync(AppSettingsService appSettingsService, IAzureService azureService)
        {
            LoggingIn = true;
            do
            {
                try
                {
                    var user = await azureService.LoginAsync();

                    appSettingsService.Add(AuthenticaitonTokenKey, user.MobileServiceAuthenticationToken);
                    appSettingsService.Add(UserIdKey, user.UserId);

                    await GetCurrentUserInfoAsync(azureService);
                }
                catch (Exception) { }
            } while (UserInformation.User == null);
        }