BaconographyWP8.PlatformServices.UserService.GetStoredCredentialsImpl C# (CSharp) Method

GetStoredCredentialsImpl() private method

private GetStoredCredentialsImpl ( ) : Task>
return Task>
        private async Task<List<UserCredential>> GetStoredCredentialsImpl()
        {
            List<UserCredential> credentials = new List<UserCredential>();
            var userInfoDb = await GetUserInfoDB();
            var userCredentialsCursor = await userInfoDb.SelectAsync(userInfoDb.GetKeys().First(), "credentials", DBReadFlags.NoLock);
            if (userCredentialsCursor != null)
            {
                using (userCredentialsCursor)
                {
                    do
                    {
                        var credential = JsonConvert.DeserializeObject<UserCredential>(userCredentialsCursor.GetString());
                        credentials.Add(credential);
                    } while (await userCredentialsCursor.MoveNextAsync());
                }
            }
            return credentials;
        }