ModelBinding.InterfaceBinderProvider<T0> Interface
Namespace: Nucleus.ViewFeatures.ModelBinding
Assembly: Nucleus.ViewFeatures.dll
Model binder provider for interface implementations. This class works with
ModelBinding.InterfaceModelBinder to bind to the concrete implementation of the interface specified by
T, using the request value specifed by typeNameItemKey in the constructor.
Constructor
InterfaceBinderProvider<T0>
(String) Constructor
InterfaceBinderProvider<T0> (String typeNameItemKey)
Initializes a new instance of the
ModelBinding.InterfaceBinderProvider<T0> class.
typeNameItemKey specifies the key (form variable) from the Http request which contains the type name of the concrete implementation of
T.
Parameters
| Name |
Type |
|
typeNameItemKey
|
String
|
Methods
GetBinder
(ModelBinderProviderContext) Method
GetBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext)