src/DotNetCasClient.Redis/State/RedisServiceTicketManager.cs
/// <summary>
/// Retrieve a CasAuthenticationTicket from the ticket store
/// by it's CAS Service Ticket
/// </summary>
/// <param name="serviceTicket">The service ticket generated by the CAS server</param>
/// <returns>The CasAuthenticationTicket or null if no matching ticket is found</returns>
/// <exception cref="ArgumentNullException">serviceTicket is null</exception>
/// <exception cref="ArgumentException">serviceTicket is empty</exception>
Retrieve a CasAuthenticationTicket from the ticket store
by it's CAS Service Ticket
Retrieve a CasAuthenticationTicket from the ticket store by it ' s CAS Service Ticket
public CasAuthenticationTicket GetTicket(string serviceTicket)
        {
            CommonUtils.AssertNotNullOrEmpty(serviceTicket, "serviceTicket parameter cannot be null or empty.");
            var key = GetTicketKey(serviceTicket);
            var db = RedisClientManager.Instance.GetDatabase();
            return (CasAuthenticationTicket)SerializationUtil.Deserialize(db.StringGet(key));
        }
public CasAuthenticationTicket GetTicket ( string serviceTicket ) { CommonUtils . AssertNotNullOrEmpty ( serviceTicket , " " ) ; var key = GetTicketKey ( serviceTicket ) ; var db = RedisClientManager . Instance . GetDatabase ( ) ; return ( CasAuthenticationTicket ) SerializationUtil . Deserialize ( db . StringGet ( key ) ) ; }
Retrieve a CasAuthenticationTicket from the ticket store
by it's CAS Service Ticket
Retrieve a CasAuthenticationTicket from the ticket store by it ' s CAS Service Ticket
The CasAuthenticationTicket or null if no matching ticket is found
The CasAuthenticationTicket or null if no matching ticket is found
serviceTicket is null
serviceTicket is null
serviceTicket is empty
serviceTicket is empty
serviceTicket
string
The service ticket generated by the CAS server
The service ticket generated by the CAS server