Class HTTPArtifactStateCache
Provides a cache for storing HTTPArtifactState
.
Inheritance
System.Object
HTTPArtifactStateCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComponentSpace.SAML2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class HTTPArtifactStateCache
Remarks
The cache is implemented using the System.Web.Caching.Cache
.
Use of this cache is entirely optional.
Refer to the System.Web.Caching.Cache
documentation for usage restrictions.
Properties
Expiration
Gets or sets the expiration time span for cached artifact state entries.
Declaration
public static TimeSpan Expiration { get; set; }
Property Value
Type | Description |
---|---|
System. |
The expiration time span for cached artifact state entries. |
Methods
Add(HTTPArtifact, HTTPArtifactState)
Adds an entry to the cache.
Declaration
public static void Add(HTTPArtifact httpArtifact, HTTPArtifactState httpArtifactState)
Parameters
Type | Name | Description |
---|---|---|
HTTPArtifact | httpArtifact | The artifact whose string value is used as a cache key. |
HTTPArtifact |
httpArtifactState | The item to cache. |
Get(HTTPArtifact)
Gets an entry from the cache.
Declaration
public static HTTPArtifactState Get(HTTPArtifact httpArtifact)
Parameters
Type | Name | Description |
---|---|---|
HTTPArtifact | httpArtifact | The artifact whose string value is used as a cache key. |
Returns
Type | Description |
---|---|
HTTPArtifact |
The cached item or |
Remove(HTTPArtifact)
Removes an entry from the cache.
Declaration
public static HTTPArtifactState Remove(HTTPArtifact httpArtifact)
Parameters
Type | Name | Description |
---|---|---|
HTTPArtifact | httpArtifact | The artifact whose string value is used as a cache key. |
Returns
Type | Description |
---|---|
HTTPArtifact |
The item removed from the cache or |