Class ApplyJsonFormatterConvention
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention that registers a model binder that uses IJsonInputFormatter for all body parameters
Inheritance
System.Object
ApplyJsonFormatterConvention
Implements
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention
Namespace: EPiServer.Formatters
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public class ApplyJsonFormatterConvention : Object, IApplicationModelConvention
Constructors
ApplyJsonFormatterConvention(Assembly)
Creates a new instance of ApplyJsonFormatterConvention
Declaration
public ApplyJsonFormatterConvention(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to register IJsonInputFormatter for |
Properties
Assembly
The assembly to add input model binder for
Declaration
public Assembly Assembly { get; }
Property Value
Type | Description |
---|---|
System.Reflection.Assembly |
Methods
Apply(ApplicationModel)
Declaration
public void Apply(ApplicationModel application)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel | application |
Implements
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention