예제 #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));
 }