Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Revoke all tickets corresponding to the supplied Username.
/// </summary>
/// <param name="username">The Username to revoke tickets for</param>
/// <exception cref="ArgumentNullException">The username supplied is null</exception>
/// <exception cref="ArgumentException">The username supplied is empty</exception>
Revoke all tickets corresponding to the supplied Username.
Revoke all tickets corresponding to the supplied Username .
public override void RevokeUserTickets(string username)
        {
            if (username == null)
            {
                throw new ArgumentNullException("username", "username parameter cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(username))
            {
                throw new ArgumentException("username parameter cannot be null or empty.", "username");
            }
            IEnumerable<UserAuthenticationTicket> allTickets = GetAllTickets();
            foreach (UserAuthenticationTicket ticket in allTickets)
            {
                if (string.Compare(ticket.Username, username, StringComparison.OrdinalIgnoreCase) == 0)
                {
                    RevokeTicket(ticket.Key);
                }
            }
        }
public override void RevokeUserTickets ( string username ) { if ( username == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( string . IsNullOrEmpty ( username ) ) { throw new ArgumentException ( " " , " " ) ; } IEnumerable < UserAuthenticationTicket > allTickets = GetAllTickets ( ) ; foreach ( UserAuthenticationTicket ticket in allTickets ) { if ( string . Compare ( ticket . Username , username , StringComparison . OrdinalIgnoreCase ) == 0 ) { RevokeTicket ( ticket . Key ) ; } } }
Revoke all tickets corresponding to the supplied Username.
Revoke all tickets corresponding to the supplied Username .
The username supplied is null
The username supplied is null
The username supplied is empty
The username supplied is empty
username
string
The Username to revoke tickets for
The Username to revoke tickets for