ValueAdapter<T> Class |
An abstract implementation of IValueAdapter<T>.
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 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.
|