Table of Contents

AddJsonFormatters Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json/MvcBuilderExtensions.cs

AddJsonFormatters(IMvcBuilder, Action<JsonFormatterOptions>)

Adds the JSON serializer formatters to MVC.

public static IMvcBuilder AddJsonFormatters(this IMvcBuilder builder, Action<JsonFormatterOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder.

setup Action<JsonFormatterOptions>

The JsonFormatterOptions which may be configured.

Returns

IMvcBuilder

A reference to builder after the operation has completed.

Exceptions

ArgumentNullException

builder cannot be null -or- setup cannot be null.