Sholo.Web.Security/Authentication/User/Provider/CacheUserAuthenticationTicketProvider.cs
/// <summary>
/// Converts a ticketKey to a corresponding key in the ticket store (cache provider). 
/// </summary>
/// <param name="ticketKey">The ticketKey to convert.</param>
/// <returns>The cache key associated with the ticketKey</returns>
/// <exception cref="ArgumentNullException">ticketKey is null</exception>
/// <exception cref="ArgumentException">ticketKey is empty</exception>
Converts a ticketKey to a corresponding key in the ticket store (cache provider).
Converts a ticketKey to a corresponding key in the ticket store ( cache provider ) .
private static string GetCacheKey(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");
            }
            return UserTicketKeyPrefix + ticketKey;
        }
private static string GetCacheKey ( string ticketKey ) { if ( ticketKey == null ) { throw new ArgumentNullException ( " " , " " ) ; } if ( string . IsNullOrEmpty ( ticketKey ) ) { throw new ArgumentException ( " " , " " ) ; } return UserTicketKeyPrefix + ticketKey ; }
Converts a ticketKey to a corresponding key in the ticket store (cache provider).
Converts a ticketKey to a corresponding key in the ticket store ( cache provider ) .
The cache key associated with the ticketKey
The cache key associated with the ticketKey
ticketKey is null
ticketKey is null
ticketKey is empty
ticketKey is empty
ticketKey
string
The ticketKey to convert.
The ticketKey to convert .