Show / Hide Table of Contents

Interface IAuthCodeCache

The authorization code cache.

Namespace: ComponentSpace.OpenID.Cache
Assembly: ComponentSpace.OpenID.dll
Syntax
public interface IAuthCodeCache

Methods

GetAsync(String)

Gets the entry from the cache.

Declaration
Task<byte[]> GetAsync(string authorizationCode)
Parameters
Type Name Description
System.String authorizationCode

The authorization code.

Returns
Type Description
Task<System.Byte[]>

A task that represents the get operation and returns the cache entry or null.

RemoveAsync(String)

Removes the entry from the cache.

Declaration
Task RemoveAsync(string authorizationCode)
Parameters
Type Name Description
System.String authorizationCode

The authorization code.

Returns
Type Description
Task

A task that represents the remove operation.

SetAsync(String, Byte[], Nullable<TimeSpan>, Nullable<DateTimeOffset>)

Sets the entry in the cache.

Declaration
Task SetAsync(string authorizationCode, byte[] bytes, TimeSpan? slidingExpiration = null, DateTimeOffset? absoluteExpiration = null)
Parameters
Type Name Description
System.String authorizationCode

The authorization code.

System.Byte[] bytes

The cache entry.

System.Nullable<TimeSpan> slidingExpiration

The sliding expiration.

System.Nullable<DateTimeOffset> absoluteExpiration

The absolute expiration.

Returns
Type Description
Task

A task that represents the set operation.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2022. All rights reserved.