Class ApplicationBuilderExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the Microsoft.AspNetCore.Builder.IApplicationBuilder interface.
public static class ApplicationBuilderExtensions
- Inheritance
-
ApplicationBuilderExtensions
Methods
UseThrottlingSentinel(IApplicationBuilder, Action<ThrottlingSentinelOptions>)
Adds a HTTP requests rate limiting / throttling guard to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline.
public static IApplicationBuilder UseThrottlingSentinel(this IApplicationBuilder builder, Action<ThrottlingSentinelOptions> setup = null)
Parameters
builder
IApplicationBuilderThe type that provides the mechanisms to configure an application’s request pipeline.
setup
Action<ThrottlingSentinelOptions>The ThrottlingSentinelOptions middleware which may be configured.
Returns
- IApplicationBuilder
A reference to
builder
after the operation has completed.