Open sandboxFocus

Interface IValueAdapter<T>

A strongly-typed version of IValueAdapter.

Namespace: PostSharp.Patterns.Caching.ValueAdapters
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface IValueAdapter<T> : IValueAdapter
Type Parameters
Name Description
T

The type of the exposed value, which is typically the return type of the cached method.

Methods

Name Description
GetExposedValue(object)

Gets the value that should be exposed to the consuming application, which is typically the return value of the cached method.

GetStoredValue(T)

Gets the value that should be stored in the cache.

GetStoredValueAsync(T, CancellationToken)

Asynchronously gets the value that should be stored in the cache.

See Also