Interface IArtifactCache
The artifact cache manages artifacts and associated state.
Namespace: ComponentSpace.Saml2.Cache
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IArtifactCache
  Methods
AddAsync(string, string, DateTime)
Adds the artifact and associated SAML message to the cache.
Declaration
Task AddAsync(string artifact, string artifactState, DateTime expirationDateTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | artifact | The artifact.  | 
      
| string | artifactState | The artifact state.  | 
      
| DateTime | expirationDateTime | The expiration time.  | 
      
Returns
| Type | Description | 
|---|---|
| Task | 
Exceptions
| Type | Condition | 
|---|---|
| SamlEnvironmentException | Thrown if the artifact cannot be added to the cache.  | 
      
RemoveAsync(string)
Removes the artifact from the cache.
Declaration
Task<string> RemoveAsync(string artifact)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | artifact | The artifact.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<string> | A task that represents the remove operation and returns the associated artifact state.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SamlEnvironmentException | Thrown if the artifact cannot be removed from the cache.  |