PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace/IValue­Adapter Interface/IValue­Adapter Methods/IValue­Adapter.​Get­Stored­Value­Async Method

IValueAdapter.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.5.13.0 (6.5.13.0)
Syntax
C#
Task<Object> GetStoredValueAsync(
	Object value,
	CancellationToken cancellationToken
)

Parameters

value
Type: System.Object
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