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.10.10.0 (6.10.10.0)
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.