Struct ThrottlingEventArgs
- Namespace
- RateLimitHeaders.Events
- Assembly
- RateLimitHeaders.dll
Provides data for throttling events from the HTTP handler.
[SuppressMessage("Naming", "CA1711:Identifiers should not have incorrect suffix", Justification = "EventArgs suffix is intentional for event data records")]
public readonly record struct ThrottlingEventArgs : IEquatable<ThrottlingEventArgs>
- Implements
- Inherited Members
Constructors
ThrottlingEventArgs(RateLimitInfo, Uri?, TimeSpan, string?)
Provides data for throttling events from the HTTP handler.
public ThrottlingEventArgs(RateLimitInfo RateLimitInfo, Uri? RequestUri, TimeSpan Delay, string? Reason)
Parameters
RateLimitInfoRateLimitInfoThe parsed rate limit information.
RequestUriUriThe URI of the request being throttled.
DelayTimeSpanThe delay being applied.
ReasonstringThe reason for throttling.
Properties
Delay
The delay being applied.
public TimeSpan Delay { get; init; }
Property Value
RateLimitInfo
The parsed rate limit information.
public RateLimitInfo RateLimitInfo { get; init; }
Property Value
Reason
The reason for throttling.
public string? Reason { get; init; }
Property Value
RequestUri
The URI of the request being throttled.
public Uri? RequestUri { get; init; }