AddJsonFormattersOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json.dll
AddJsonFormattersOptions(IMvcCoreBuilder, Action<JsonFormatterOptions>)
Adds configuration of JsonFormatterOptions for the application.
public static IMvcCoreBuilder AddJsonFormattersOptions(this IMvcCoreBuilder builder, Action<JsonFormatterOptions> setup = null)
Parameters
builderIMvcCoreBuilderThe IMvcBuilder.
setupAction<JsonFormatterOptions>The JsonFormatterOptions which need to be configured.
Returns
- IMvcCoreBuilder
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.