ProtectionDataModelModelBinderProvider

Implements a model binder provider for ProtectionDataModelModelBinder.

Namespace:
KpokPatagon.AspNet.Binders
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Example

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));
                    });
                

Constructors

ProtectionDataModelModelBinderProvider

Initializes a new instance of ProtectionDataModelModelBinder.

Signature:
public Void ProtectionDataModelModelBinderProvider(formatters)
Parameters
Name Type Summary
formatters IList<IInputFormatter>

Methods

GetBinder

Create binder.

Signature:
public IModelBinder GetBinder(context)
Parameters
Name Type Summary
context ModelBinderProviderContext