Table of Contents

Namespace Cuemon.AspNetCore.Http.Throttling

Assembly: Cuemon.AspNetCore.dll

The Cuemon.AspNetCore.Http.Throttling namespace contains types that provides a middleware based throttling mechanism by specifying allowed quota and window duration of HTTP requests tied to a custom context (eg. IP-address, Authorization header, etc.).

Availability: .NET 8, .NET 7 and .NET 6

Related: Cuemon.Extensions.AspNetCore.Http.Throttling namespace 📘

Classes

MemoryThrottlingCache

Provides a simple in-memory representation of the IThrottlingCache. This class cannot be inherited.

ThrottleQuota

Specifies the allowed quota and window duration of HTTP requests.

ThrottleRequest

Represents the request usage and quota in the context of throttling.

ThrottlingException

The exception that is thrown when a given request threshold has been reached and then throttled.

ThrottlingSentinelMiddleware

Provides an API throttling middleware implementation for ASP.NET Core.

ThrottlingSentinelOptions

Configuration options for ThrottlingSentinelMiddleware.

Interfaces

IThrottlingCache

Specifies the contract for the storage of a throttling cache.