Table of Contents

AddThrottlingSentinelOptions Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Filters
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc/Filters/MvcBuilderExtensions.cs

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.