AddJsonFormatters Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json.dll
AddJsonFormatters(IMvcCoreBuilder, Action<JsonFormatterOptions>)
Adds the JSON serializer formatters to MVC.
public static IMvcCoreBuilder AddJsonFormatters(this IMvcCoreBuilder builder, Action<JsonFormatterOptions> setup = null)
Parameters
builderIMvcCoreBuilderThe IMvcCoreBuilder.
setupAction<JsonFormatterOptions>The JsonFormatterOptions which may be configured.
Returns
- IMvcCoreBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null.