PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace/IValue­Adapter(T) Interface

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.1.23.0 (6.1.23.0)
Syntax
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.

Properties
  NameDescription
Public propertyIsAsyncSupported
Determines whether the GetStoredValueAsync(Object, CancellationToken) method is supported.
(Inherited from IValueAdapter.)
Methods
  NameDescription
Public methodGetExposedValue
Gets the value that should be exposed to the consuming application, i.e. typically the return value of the cached method.
Public methodGetStoredValue(Object)
Gets the value that should be stored in the cache.
(Inherited from IValueAdapter.)
Public methodGetStoredValue(T)
Gets the value that should be stored in the cache.
Public methodGetStoredValueAsync(Object, CancellationToken)
Asynchronously gets the value that should be stored in the cache.
(Inherited from IValueAdapter.)
Public methodGetStoredValueAsync(T, CancellationToken)
Asynchronously gets the value that should be stored in the cache.
See Also