Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Retrieve a UserAuthenticationTicket from the ticket store 
/// by it's ticket key
/// </summary>
/// <param name="userAuthenticationTicketKey">The ticket key generated by the server</param>
/// <returns>The UserAuthenticationTicket or null if no matching ticket is found</returns>
/// <exception cref="ArgumentNullException">userAuthenticationTicketKey is null</exception>
/// <exception cref="ArgumentException">userAuthenticationTicketKey is empty</exception>
Retrieve a UserAuthenticationTicket from the ticket store
by it's ticket key
Retrieve a UserAuthenticationTicket from the ticket store by it ' s ticket key
public override UserAuthenticationTicket GetTicket(string userAuthenticationTicketKey)
        {
            if (userAuthenticationTicketKey == null)
            {
                throw new ArgumentNullException("userAuthenticationTicketKey", "userAuthenticationTicketKey parameter cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(userAuthenticationTicketKey))
            {
                throw new ArgumentException("userAuthenticationTicketKey parameter cannot be null or empty.", "userAuthenticationTicketKey");
            }                
            string key = GetCacheKey(userAuthenticationTicketKey);
            if (HttpContext.Current.Cache[key] != null)
            {
                UserAuthenticationTicket result = HttpContext.Current.Cache[key] as UserAuthenticationTicket;
                return result;
            }
            return null;
        }
public override UserAuthenticationTicket GetTicket ( string userAuthenticationTicketKey ) { if ( userAuthenticationTicketKey == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( string . IsNullOrEmpty ( userAuthenticationTicketKey ) ) { throw new ArgumentException ( " " , " " ) ; } string key = GetCacheKey ( userAuthenticationTicketKey ) ; if ( HttpContext . Current . Cache [ key ] != null ) { UserAuthenticationTicket result = HttpContext . Current . Cache [ key ] as UserAuthenticationTicket ; return result ; } return null ; }
Retrieve a UserAuthenticationTicket from the ticket store
by it's ticket key
Retrieve a UserAuthenticationTicket from the ticket store by it ' s ticket key
The UserAuthenticationTicket or null if no matching ticket is found
The UserAuthenticationTicket or null if no matching ticket is found
userAuthenticationTicketKey is null
userAuthenticationTicketKey is null
userAuthenticationTicketKey is empty
userAuthenticationTicketKey is empty
userAuthenticationTicketKey
string
The ticket key generated by the server
The ticket key generated by the server