Nucleus .Net Core CMS

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.
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
GetBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext)