Class HTTPArtifactStateCache
Provides a cache for storing HTTPArtifactState.
Inherited Members
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 | 
|---|---|
| TimeSpan | 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.  | 
      
| HTTPArtifactState | 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 | 
|---|---|
| HTTPArtifactState | 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 | 
|---|---|
| HTTPArtifactState | The item removed from the cache or   |