Implements a model binder provider for ProtectionDataModelModelBinder.
Register this provider as in the example below.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews(configure =>
{
configure.ModelBinderProviders.Insert(0,
new ProtectionDataModelModelBinderProvider(configure.InputFormatters));
});
Initializes a new instance of ProtectionDataModelModelBinder.
public Void ProtectionDataModelModelBinderProvider(formatters)| Name | Type | Summary |
|---|---|---|
| formatters | IList<IInputFormatter> |
Create binder.
public IModelBinder GetBinder(context)| Name | Type | Summary |
|---|---|---|
| context | ModelBinderProviderContext |
In this document