AddThrottlingSentinelOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http.Throttling
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
AddThrottlingSentinelOptions(IServiceCollection, Action<ThrottlingSentinelOptions>)
Adds configuration of ThrottlingSentinelOptions for the application.
public static IServiceCollection AddThrottlingSentinelOptions(this IServiceCollection services, Action<ThrottlingSentinelOptions> setup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
setupAction<ThrottlingSentinelOptions>The ThrottlingSentinelOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
servicescannot be null.- ArgumentException
setupfailed to configure an instance of ThrottlingSentinelOptions in a valid state.