PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace/Value­Adapter(T) Class

ValueAdapter<T> Class

An abstract implementation of IValueAdapter<T>.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.ValueAdapters.ValueAdapter<T>

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.5.13.0 (6.5.13.0)
Syntax
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.

Constructors
  NameDescription
Protected methodValueAdapter<T>
Initializes a new instance of the ValueAdapter<T> class
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