Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Inserts a UserAuthenticationTicket to the ticket store with a corresponding 
/// ticket expiration date.
/// </summary>
/// <param name="ticket">The UserAuthenticationTicket to insert</param>
/// <param name="expiration">The date and time at which the ticket expires</param>
/// <exception cref="ArgumentNullException">UserAuthenticationTicket is null</exception>
Inserts a UserAuthenticationTicket to the ticket store with a corresponding
ticket expiration date.
Inserts a UserAuthenticationTicket to the ticket store with a corresponding ticket expiration date .
public override void InsertTicket(UserAuthenticationTicket ticket, DateTime expiration)
        {
            if (ticket == null)
            {
                throw new ArgumentNullException("ticket", "UserAuthenticationTicket parameter cannot be null.");
            }
            HttpContext.Current.Cache.Insert(GetCacheKey(ticket.Key), ticket, null, expiration, Cache.NoSlidingExpiration);
        }
public override void InsertTicket ( UserAuthenticationTicket ticket , DateTime expiration ) { if ( ticket == null ) { throw new ArgumentNullException ( " " , " " ) ; } HttpContext . Current . Cache . Insert ( GetCacheKey ( ticket . Key ) , ticket , null , expiration , Cache . NoSlidingExpiration ) ; }
Inserts a UserAuthenticationTicket to the ticket store with a corresponding
ticket expiration date.
Inserts a UserAuthenticationTicket to the ticket store with a corresponding ticket expiration date .
// Don't enforce sliding expiration on the cache entry.  Sliding expiration  // is handled by the HttpModule
UserAuthenticationTicket is null
UserAuthenticationTicket is null
ticket
UserAuthenticationTicket
The UserAuthenticationTicket to insert
The UserAuthenticationTicket to insert
expiration
DateTime
The date and time at which the ticket expires
The date and time at which the ticket expires