PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Value­Adapters Namespace / Value­Adapter­Factory Class / Value­Adapter­Factory Methods / Value­Adapter­Factory.​Register Method / Value­Adapter­Factory.​Register(T) Method (IValue­Adapter(T))

ValueAdapterFactory.Register<T> Method (IValueAdapter<T>)

Registers an IValueAdapter<T>.

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public void Register<T>(
	IValueAdapter<T> valueAdapter
)

Parameters

valueAdapter
Type: PostSharp.Patterns.Caching.ValueAdapters.IValueAdapter<T>
The adapter.

Type Parameters

T
The type of the cached value (typically the return type of the cached method).
See Also