AddJsonFormattersOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json.dll
AddJsonFormattersOptions(IMvcBuilder, Action<JsonFormatterOptions>)
Adds configuration of JsonFormatterOptions for the application.
public static IMvcBuilder AddJsonFormattersOptions(this IMvcBuilder builder, Action<JsonFormatterOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder.
setupAction<JsonFormatterOptions>The JsonFormatterOptions which need to be configured.
Returns
- IMvcBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of JsonFormatterOptions in a valid state.