Inheritance: IAuthStorage
示例#1
0
 protected virtual T GetAccount <T> (string identifier) where T : Account
 {
     try {
         var data = AuthStorage.GetSecured(identifier, ClientId, ClientSecret, SharedGroupAccess);
         return(string.IsNullOrWhiteSpace(data) ? null : Deserialize <T> (data));
     } catch (Exception ex) {
         OnException(this, ex);
         return(null);
     }
 }
示例#2
0
 protected virtual void SaveAccount(Account account)
 {
     AuthStorage.SetSecured(account.Identifier, SerializeObject(account), ClientId, ClientSecret, SharedGroupAccess);
 }