IValueAdapter Interface |
Wraps uncachable classes or interfaces into cacheable objects, for instance an IEnumerable may be wrapped into an array.
Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.11.0 (6.4.11.0)

C#
public interface IValueAdapter
The IValueAdapter type exposes the following members.

Name | Description | |
---|---|---|
![]() | IsAsyncSupported |
Determines whether the GetStoredValueAsync(Object, CancellationToken) method is supported.
|

Name | Description | |
---|---|---|
![]() | GetExposedValue |
Gets the value that should be exposed to the consuming application, i.e. typically the return value of the cached method.
|
![]() | GetStoredValue |
Gets the value that should be stored in the cache.
|
![]() | GetStoredValueAsync |
Asynchronously gets the value that should be stored in the cache.
|
