Пример #1
0
 public static void Add(TokenSys token)
 {
     try
     {
         ActiveTokens.RemoveAll(item => item.Email == token.Email || token.TokenGuid == item.TokenGuid);
     }
     catch (NullReferenceException)
     {
         ActiveTokens = new List <TokenSys>();
     }
     ActiveTokens.Add(token);
 }
Пример #2
0
 public static bool ThisTokenIsValid(TokenSys token)
 {
     return(ThisTokenIsValid(token.TokenGuid));
 }