Table of Contents

AddFaultDescriptorOptions Method

Definition

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

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<MvcFaultDescriptorOptions>

The MvcFaultDescriptorOptions that may be configured.

Returns

IMvcBuilder

A reference to builder so that additional configuration calls can be chained.

Exceptions

ArgumentNullException

builder cannot be null.

ArgumentException

setup failed to configure an instance of MvcFaultDescriptorOptions in a valid state.