ValueAdapter<T> Class |
An abstract implementation of IValueAdapter<T>.

Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)

C#
public abstract class ValueAdapter<T> : IValueAdapter<T>, IValueAdapter
Type Parameters
- T
- Type of the exposed value, i.e. typically return type of the cached method.
The ValueAdapter<T> type exposes the following members.

Name | Description | |
---|---|---|
![]() | ValueAdapter<T> | Initializes a new instance of the ValueAdapter<T> class |

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.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
