PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / Value­Adapter(T) Class / Value­Adapter(T) Methods / Value­Adapter(T).​Get­Stored­Value­Async Method

ValueAdapter<T>.GetStoredValueAsync Method

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.8.6.0 (6.8.6.0)
Syntax
C#
public virtual 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.

Implements

IValueAdapter<T>.GetStoredValueAsync(T, CancellationToken)
See Also