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

ValueAdapterFactory Class

Registers and provides value adapters (IValueAdapter), which allow for instance to cache things like Stream or IEnumerable, which could not be otherwise cached.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.ValueAdapters.ValueAdapterFactory

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 sealed class ValueAdapterFactory

The ValueAdapterFactory type exposes the following members.

Methods
  NameDescription
Public methodGet
Gets an IValueAdapter given a value type.
Public methodRegister(Type, IValueAdapter)
Registers an IValueAdapter instance and explicitly specifies the value type.
Public methodRegister(Type, Type)
Registers a generic value adapter.
Public methodRegister<T>(IValueAdapter<T>)
Registers an IValueAdapter<T>.
See Also