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: 2023.0.3.0 (2023.0.3.0)
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.