AddFaultDescriptorOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
AddFaultDescriptorOptions(IMvcBuilder, Action<MvcFaultDescriptorOptions>)
Registers the specified setup to configure MvcFaultDescriptorOptions in the underlying service collection of builder.
public static IMvcBuilder AddFaultDescriptorOptions(this IMvcBuilder builder, Action<MvcFaultDescriptorOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<MvcFaultDescriptorOptions>The MvcFaultDescriptorOptions that may be configured.
Returns
- IMvcBuilder
A reference to
builderso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of MvcFaultDescriptorOptions in a valid state.