Table of Contents

Interface IIDCache

Namespace
ComponentSpace.Saml2.Cache
Assembly
ComponentSpace.Saml2.dll

The ID cache manages IDs.

public interface IIDCache

Methods

AddAsync(string, DateTime)

Adds the ID with an associated expiration time to the cache.

Task<bool> AddAsync(string id, DateTime expirationDateTime)

Parameters

id string

The ID.

expirationDateTime DateTime

The expiration time.

Returns

Task<bool>

A task that represents the add operation and returns true if the ID already exists in the cache; otherwise false.

Exceptions

SamlEnvironmentException

Thrown if the ID cannot be added to the cache.

RemoveAsync(string)

Removes the ID from the cache.

Task RemoveAsync(string id)

Parameters

id string

The ID.

Returns

Task

A task that represents the remove operation.

Exceptions

SamlEnvironmentException

Thrown if the ID cannot be removed from the cache.