ThrottlingSentinelMiddleware Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http.Throttling
- Assemblies
- Cuemon.AspNetCore.dll
ThrottlingSentinelMiddleware(RequestDelegate, IOptions<ThrottlingSentinelOptions>)
Initializes a new instance of the ThrottlingSentinelMiddleware class.
public ThrottlingSentinelMiddleware(RequestDelegate next, IOptions<ThrottlingSentinelOptions> setup)
Parameters
nextRequestDelegateThe delegate of the request pipeline to invoke.
setupIOptions<ThrottlingSentinelOptions>The ThrottlingSentinelOptions which need to be configured.
ThrottlingSentinelMiddleware(RequestDelegate, Action<ThrottlingSentinelOptions>)
Initializes a new instance of the ThrottlingSentinelMiddleware class.
public ThrottlingSentinelMiddleware(RequestDelegate next, Action<ThrottlingSentinelOptions> setup)
Parameters
nextRequestDelegateThe delegate of the request pipeline to invoke.
setupAction<ThrottlingSentinelOptions>The ThrottlingSentinelOptions which need to be configured.