PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​Value­AdaptersValue­Adapter<T>Get­Stored­Value­Async
Open sandboxFocus

Method GetStoredValueAsync

GetStoredValueAsync(T, CancellationToken)

Asynchronously gets the value that should be stored in the cache.

Declaration
public virtual Task<object> GetStoredValueAsync(T value, CancellationToken cancellationToken)
Parameters
Type Name Description
T value

The apparent value (typically the return value of the cached method).

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<Object>

A Task returning a cacheable object.

Implements
IValueAdapter<T>.GetStoredValueAsync(T, CancellationToken)