Struct QuotaLowEventArgs
- Namespace
- RateLimitHeaders.Events
- Assembly
- RateLimitHeaders.dll
Provides data for quota low warning 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 QuotaLowEventArgs : IEquatable<QuotaLowEventArgs>
- Implements
- Inherited Members
Constructors
QuotaLowEventArgs(RateLimitInfo, Uri?, double, double)
Provides data for quota low warning events from the HTTP handler.
public QuotaLowEventArgs(RateLimitInfo RateLimitInfo, Uri? RequestUri, double RemainingPercentage, double Threshold)
Parameters
RateLimitInfoRateLimitInfoThe parsed rate limit information.
RequestUriUriThe URI of the request that triggered this event.
RemainingPercentagedoubleThe remaining quota as a percentage (0.0 to 1.0).
ThresholddoubleThe threshold that was exceeded.
Properties
RateLimitInfo
The parsed rate limit information.
public RateLimitInfo RateLimitInfo { get; init; }
Property Value
RemainingPercentage
The remaining quota as a percentage (0.0 to 1.0).
public double RemainingPercentage { get; init; }
Property Value
RequestUri
The URI of the request that triggered this event.
public Uri? RequestUri { get; init; }
Property Value
Threshold
The threshold that was exceeded.
public double Threshold { get; init; }