Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Retrieves a list of all users that have non-expired ServerAuthenticationTickets.
/// </summary>
/// <returns>An enumerable collection of Username's</returns>
Retrieves a list of all users that have non-expired ServerAuthenticationTickets.
Retrieves a list of all users that have non - expired ServerAuthenticationTickets .
public override IEnumerable<string> GetAllTicketedUsers()
        {
            List<string> result = new List<string>();
            IEnumerable<UserAuthenticationTicket> tickets = GetAllTickets();
            foreach (UserAuthenticationTicket ticket in tickets)
            {
                if (!result.Contains(ticket.Username))
                {
                    result.Add(ticket.Username);
                }
            }
            return result.ToArray();
        }
public override IEnumerable < string > GetAllTicketedUsers ( ) { List < string > result = new List < string > ( ) ; IEnumerable < UserAuthenticationTicket > tickets = GetAllTickets ( ) ; foreach ( UserAuthenticationTicket ticket in tickets ) { if ( ! result . Contains ( ticket . Username ) ) { result . Add ( ticket . Username ) ; } } return result . ToArray ( ) ; }
Retrieves a list of all users that have non-expired ServerAuthenticationTickets.
Retrieves a list of all users that have non - expired ServerAuthenticationTickets .
An enumerable collection of Username's
An enumerable collection of Username ' s