IValueAdapter<T> Interface |
A strongly-typed version of IValueAdapter.
Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public interface IValueAdapter<T> : IValueAdapter
Type Parameters
- T
- Type of the exposed value, i.e. typically return type of the cached method.
The IValueAdapter<T> type exposes the following members.
Name | Description | |
---|---|---|
IsAsyncSupported |
Determines whether the GetStoredValueAsync(Object, CancellationToken) method is supported.
(Inherited from IValueAdapter.) |
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(Object) |
Gets the value that should be stored in the cache.
(Inherited from IValueAdapter.) | |
GetStoredValue(T) |
Gets the value that should be stored in the cache.
| |
GetStoredValueAsync(Object, CancellationToken) |
Asynchronously gets the value that should be stored in the cache.
(Inherited from IValueAdapter.) | |
GetStoredValueAsync(T, CancellationToken) |
Asynchronously gets the value that should be stored in the cache.
|