AddValueAdapter(Type, IValueAdapter)
Registers an IValueAdapter instance and explicitly specifies the value type.
Declaration
ICachingServiceBuilder AddValueAdapter(Type valueType, IValueAdapter valueAdapter)
Parameters
Type | Name | Description |
---|---|---|
Type | valueType | The type of the cached value (typically the return type of the cached method). |
IValueAdapter | valueAdapter | The adapter. |
Returns
Type | Description |
---|---|
ICachingServiceBuilder |
AddValueAdapter(Type, Type)
Registers a generic value adapter.
Declaration
ICachingServiceBuilder AddValueAdapter(Type valueType, Type valueAdapterType)
Parameters
Type | Name | Description |
---|---|---|
Type | valueType | The type of the cached value (typically the return type of the cached method). |
Type | valueAdapterType | The type of the value adapter. This type must implement the IValueAdapter
interface and have the same number of generic parameters as |
Returns
Type | Description |
---|---|
ICachingServiceBuilder |
AddValueAdapter<T>(IValueAdapter<T>)
Registers an IValueAdapter<T>.
Declaration
ICachingServiceBuilder AddValueAdapter<T>(IValueAdapter<T> valueAdapter)
Parameters
Type | Name | Description |
---|---|---|
IValueAdapter<T> | valueAdapter | The adapter. |
Returns
Type | Description |
---|---|
ICachingServiceBuilder |
Type Parameters
Name | Description |
---|---|
T | The type of the cached value (typically the return type of the cached method). |