PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / IValue­Adapter(T) Interface / IValue­Adapter(T) Methods / IValue­Adapter(T).​Get­Stored­Value­Async Method / IValue­Adapter(T).​Get­Stored­Value­Async Method (T, Cancellation­Token)

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

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

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
Task<Object> GetStoredValueAsync(
	T value,
	CancellationToken cancellationToken
)

Parameters

value
Type: T
The apparent value (typically the return value of the cached method).
cancellationToken
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task<Object>
A Task returning a cacheable object.
See Also