AddThrottlingSentinelOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
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
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<ThrottlingSentinelOptions>The ThrottlingSentinelOptions which 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 ThrottlingSentinelOptions in a valid state.