Sholo.Web.Security/Authentication/Device/Provider/CacheDeviceAuthenticationTicketProvider.cs
/// <summary>
/// Removes the ticket from the collection if it exists.  If the ticket does not
/// exist in the ticket store, just return (do not throw an exception).
/// </summary>
/// <param name="ticketKey">The ticket to remove from the ticket store</param>
/// <exception cref="ArgumentNullException">icketKey is null</exception>
/// <exception cref="ArgumentException">ticketKey is empty</exception>
Removes the ticket from the collection if it exists.  If the ticket does not
exist in the ticket store, just return (do not throw an exception).
Removes the ticket from the collection if it exists . If the ticket does not exist in the ticket store just return ( do not throw an exception ) .
public override void RevokeTicket(string ticketKey)
        {
            if (ticketKey == null)
            {
                throw new ArgumentNullException("ticketKey", "ticketKey parameter cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(ticketKey))
            {
                throw new ArgumentException("ticketKey parameter cannot be null or empty.", "ticketKey");
            }
            string key = GetCacheKey(ticketKey);
            if (HttpContext.Current.Cache[key] != null)
            {
                UserAuthenticationTicket ticket = HttpContext.Current.Cache[key] as UserAuthenticationTicket;
                if (ticket != null)
                {
                    if (HttpContext.Current.Cache[key] != null)
                    {
                        HttpContext.Current.Cache.Remove(key);
                    }
                }
            }
        }
public override void RevokeTicket ( string ticketKey ) { if ( ticketKey == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( string . IsNullOrEmpty ( ticketKey ) ) { throw new ArgumentException ( " " , " " ) ; } string key = GetCacheKey ( ticketKey ) ; if ( HttpContext . Current . Cache [ key ] != null ) { UserAuthenticationTicket ticket = HttpContext . Current . Cache [ key ] as UserAuthenticationTicket ; if ( ticket != null ) { if ( HttpContext . Current . Cache [ key ] != null ) { HttpContext . Current . Cache . Remove ( key ) ; } } } }
Removes the ticket from the collection if it exists.
Removes the ticket from the collection if it exists .
icketKey is null
icketKey is null
ticketKey is empty
ticketKey is empty
ticketKey
string
The ticket to remove from the ticket store
The ticket to remove from the ticket store