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

ValueAdapter<T>.IValueAdapter.GetStoredValueAsync Method

IValueAdapter.GetStoredValueAsync(Object, CancellationToken)

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

Declaration
Task<object> IValueAdapter.GetStoredValueAsync(object value, CancellationToken cancellationToken)
Parameters
Type Name Description
Object 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.GetStoredValueAsync(Object, CancellationToken)