Table of Contents

AddThrottlingSentinelOptions Method

Definition

AddThrottlingSentinelOptions(IMvcBuilder, Action<ThrottlingSentinelOptions>)

Registers the specified setup to configure ThrottlingSentinelOptions in the underlying service collection of builder.

public static IMvcBuilder AddThrottlingSentinelOptions(this IMvcBuilder builder, Action<ThrottlingSentinelOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<ThrottlingSentinelOptions>

The ThrottlingSentinelOptions which 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 ThrottlingSentinelOptions in a valid state.