Sholo.Web.Security/Authentication/Device/Provider/CacheDeviceAuthenticationTicketProvider.cs
/// <summary>
/// Inserts a DeviceAuthenticationTicket to the ticket store with a corresponding 
/// ticket expiration date.
/// </summary>
/// <param name="ticket">The DeviceAuthenticationTicket to insert</param>
/// <param name="expiration">The date and time at which the ticket expires</param>
/// <exception cref="ArgumentNullException">DeviceAuthenticationTicket is null</exception>
Inserts a DeviceAuthenticationTicket to the ticket store with a corresponding
ticket expiration date.
Inserts a DeviceAuthenticationTicket to the ticket store with a corresponding ticket expiration date .
public override void InsertTicket(DeviceAuthenticationTicket ticket, DateTime expiration)
        {
            if (ticket == null)
            {
                throw new ArgumentNullException("ticket", "DeviceAuthenticationTicket parameter cannot be null.");
            }
            HttpContext.Current.Cache.Insert(GetCacheKey(ticket.Key), ticket, null, expiration, Cache.NoSlidingExpiration);
        }
public override void InsertTicket ( DeviceAuthenticationTicket ticket , DateTime expiration ) { if ( ticket == null ) { throw new ArgumentNullException ( " " , " " ) ; } HttpContext . Current . Cache . Insert ( GetCacheKey ( ticket . Key ) , ticket , null , expiration , Cache . NoSlidingExpiration ) ; }
Inserts a DeviceAuthenticationTicket to the ticket store with a corresponding
ticket expiration date.
Inserts a DeviceAuthenticationTicket 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
DeviceAuthenticationTicket is null
DeviceAuthenticationTicket is null
ticket
DeviceAuthenticationTicket
The DeviceAuthenticationTicket to insert
The DeviceAuthenticationTicket to insert
expiration
DateTime
The date and time at which the ticket expires
The date and time at which the ticket expires