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

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.1.23.0 (6.1.23.0)
Syntax
C#
public interface IValueAdapter

The IValueAdapter type exposes the following members.

Properties
  NameDescription
Public propertyIsAsyncSupported
Determines whether the GetStoredValueAsync(Object, CancellationToken) method is supported.
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
Gets the value that should be stored in the cache.
Public methodGetStoredValueAsync
Asynchronously gets the value that should be stored in the cache.
See Also