Class TicketEntry
Defines a cached Authentication ticket entry for the TicketRepository
Inheritance
Namespace: ImageVault.Common.Security
Assembly: ImageVault.Common.dll
Syntax
public class TicketEntry : Object
Constructors
TicketEntry(String)
Initializes a new instance of the TicketEntry class.
Declaration
public TicketEntry(string authTicket)
Parameters
Type | Name | Description |
---|---|---|
System.String | authTicket |
TicketEntry(String, TimeSpan)
Initializes a new instance of the TicketEntry class.
Declaration
public TicketEntry(string authTicket, TimeSpan expiresIn)
Parameters
Type | Name | Description |
---|---|---|
System.String | authTicket | |
System.TimeSpan | expiresIn |
Properties
AuthTicket
Get/Sets the AuthTicket of the TicketEntry
Declaration
public string AuthTicket { get; }
Property Value
Type | Description |
---|---|
System.String |
Expires
Get/Sets the Expires of the TicketEntry
Declaration
public DateTime Expires { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | Value is in UTC format |
Methods
Equals(TicketEntry)
Determines whether the specified TicketEntry is equal to the current TicketEntry.
Declaration
protected bool Equals(TicketEntry other)
Parameters
Type | Name | Description |
---|---|---|
TicketEntry | other | The TicketEntry to compare with the current TicketEntry. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified TicketEntry is equal to the current TicketEntry; otherwise, false. |
Equals(Object)
Determines whether the specified System.Object is equal to the current TicketEntry.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current TicketEntry. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current TicketEntry; otherwise, false. |
GetHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current TicketEntry. |