Exemplo n.º 1
0
        private async static Task <LogOnIdentity> LogOnIdentityFromUserAsync(EmailAddress emailAddress, Passphrase passphrase)
        {
            AccountStorage store = new AccountStorage(New <LogOnIdentity, IAccountService>(new LogOnIdentity(emailAddress, passphrase)));

            if (await store.IsIdentityValidAsync())
            {
                return(new LogOnIdentity(await store.AllKeyPairsAsync(), passphrase));
            }
            return(LogOnIdentity.Empty);
        }