src/DotNetCasClient.Redis/State/RedisServiceTicketManager.cs
/// <summary>
/// Indicates whether or not the ticket store contains the supplied serviceTicket
/// </summary>
/// <param name="serviceTicket">The service ticket to check for</param>
/// <returns>True if the ticket is contained in the store</returns>
/// <exception cref="ArgumentNullException">serviceTicket is null</exception>
/// <exception cref="ArgumentException">serviceTicket is empty</exception>
Indicates whether or not the ticket store contains the supplied serviceTicket
Indicates whether or not the ticket store contains the supplied serviceTicket
public bool ContainsTicket(string serviceTicket)
        {
            CommonUtils.AssertNotNullOrEmpty(serviceTicket, "serviceTicket parameter cannot be null or empty.");
            var key = GetTicketKey(serviceTicket);
            var db = RedisClientManager.Instance.GetDatabase();
            return db.KeyExists(key);
        }
public bool ContainsTicket ( string serviceTicket ) { CommonUtils . AssertNotNullOrEmpty ( serviceTicket , " " ) ; var key = GetTicketKey ( serviceTicket ) ; var db = RedisClientManager . Instance . GetDatabase ( ) ; return db . KeyExists ( key ) ; }
Indicates whether or not the ticket store contains the supplied serviceTicket
Indicates whether or not the ticket store contains the supplied serviceTicket
True if the ticket is contained in the store
True if the ticket is contained in the store
serviceTicket is null
serviceTicket is null
serviceTicket is empty
serviceTicket is empty
serviceTicket
string
The service ticket to check for
The service ticket to check for