Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Retrieves all tickets in the ticket store that have not already expired.
/// </summary>
/// <returns>An enumerable collection of UserAuthenticationTickets</returns>
Retrieves all tickets in the ticket store that have not already expired.
Retrieves all tickets in the ticket store that have not already expired .
public override IEnumerable<UserAuthenticationTicket> GetAllTickets()
        {
            IDictionaryEnumerator enumerator = HttpContext.Current.Cache.GetEnumerator();
            while (enumerator.MoveNext())
            {
                string currentKey = enumerator.Entry.Key as string;
                if (currentKey != null && currentKey.StartsWith(UserTicketKeyPrefix))
                {
                    UserAuthenticationTicket currentTicket = enumerator.Entry.Value as UserAuthenticationTicket;
                    if (currentTicket != null)
                    {
                        yield return currentTicket;
                    }
                }
            }
        }
public override IEnumerable < UserAuthenticationTicket > GetAllTickets ( ) { IDictionaryEnumerator enumerator = HttpContext . Current . Cache . GetEnumerator ( ) ; while ( enumerator . MoveNext ( ) ) { string currentKey = enumerator . Entry . Key as string ; if ( currentKey != null && currentKey . StartsWith ( UserTicketKeyPrefix ) ) { UserAuthenticationTicket currentTicket = enumerator . Entry . Value as UserAuthenticationTicket ; if ( currentTicket != null ) { yield return currentTicket ; } } } }
Retrieves all tickets in the ticket store that have not already expired.
Retrieves all tickets in the ticket store that have not already expired .
An enumerable collection of UserAuthenticationTickets
An enumerable collection of UserAuthenticationTickets