ThrottlingSentinelOptions Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http.Throttling
- Assemblies
- Cuemon.AspNetCore.dll
ThrottlingSentinelOptions()
Initializes a new instance of the ThrottlingSentinelOptions class.
public ThrottlingSentinelOptions()
Remarks
The following table shows the initial property values for an instance of ThrottlingSentinelOptions.
| Property | Initial Value |
|---|---|
| RateLimitHeaderName | X-RateLimit-Limit |
| RateLimitRemainingHeaderName | X-RateLimit-Remaining |
| RateLimitResetHeaderName | X-RateLimit-Reset |
| RateLimitResetScope | DeltaSeconds |
| UseRetryAfterHeader | true |
| RetryAfterScope | DeltaSeconds |
| TooManyRequestsMessage | Throttling rate limit quota violation. Quota limit exceeded. |
| ContextResolver | null |
| Quota | null |
| ResponseHandler | A HttpResponseMessage initialized to a HTTP status code 429 with zero of one Retry-After header and a body of TooManyRequestsMessage. |