PostSharp 6.8 / / 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 Method (Type, IValue­Adapter)

ValueAdapterFactory.Register Method (Type, IValueAdapter)

Registers an IValueAdapter instance and explicitly specifies the value type.

Namespace:  PostSharp.Patterns.Caching.ValueAdapters
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public void Register(
	Type valueType,
	IValueAdapter valueAdapter
)

Parameters

valueType
Type: System.Type
The type of the cached value (typically the return type of the cached method).
valueAdapter
Type: PostSharp.Patterns.Caching.ValueAdapters.IValueAdapter
The adapter.
See Also