internal void Clear() { SSOTickets.Clear(); Sha256Key = String.Empty; OwnerCID = 0; DeleteTick = 0; }
public ExpiryState Expired(SSOTicketType tt) { if (SSOTickets.ContainsKey(tt)) { if (SSOTickets[tt].Expires < DateTime.Now) { return(ExpiryState.Expired); } return((SSOTickets[tt].Expires < DateTime.Now.AddSeconds(30)) ? ExpiryState.WillExpireSoon : ExpiryState.NotExpired); } return(ExpiryState.Expired); }