Class ThrottleRequest
Represents the request usage and quota in the context of throttling.
Inheritance
System.Object
ThrottleRequest
Namespace: Cuemon.AspNetCore.Http.Throttling
Assembly: Cuemon.AspNetCore.dll
Syntax
public class ThrottleRequest
Constructors
| Improve this DocThrottleRequest(ThrottleQuota)
Initializes a new instance of the ThrottleRequest class.
Declaration
public ThrottleRequest(ThrottleQuota quota)
Parameters
Type | Name | Description |
---|---|---|
ThrottleQuota | quota | The allowed quota of HTTP requests. |
Properties
| Improve this DocExpires
Gets the computed expiration value of a throttled rate limit.
Declaration
public DateTime Expires { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The computed expiration value of throttled rate limit. |
Remarks
This property is measured in Coordinated Universal Time (UTC) (also known as Greenwich Mean Time).
Quota
Gets the throttling quota that defines the rate limit of HTTP requests.
Declaration
public ThrottleQuota Quota { get; }
Property Value
Type | Description |
---|---|
ThrottleQuota | The throttling quota that defines the rate limit of HTTP requests. |
Total
Gets the total amount of HTTP requests.
Declaration
public int Total { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The total amount of HTTP requests. |