PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​Value­AdaptersIValue­AdapterGet­Stored­Value­Async
Open sandboxFocus

IValueAdapter.GetStoredValueAsync Method

GetStoredValueAsync(Object, CancellationToken)

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

Declaration
Task<object> GetStoredValueAsync(object value, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Object value

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

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<System.Object>

A System.Threading.Tasks.Task returning a cacheable object.