Table of Contents

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

RateLimitInfo RateLimitInfo

The parsed rate limit information.

RequestUri Uri

The URI of the request that triggered this event.

RemainingPercentage double

The remaining quota as a percentage (0.0 to 1.0).

Threshold double

The threshold that was exceeded.

Properties

RateLimitInfo

The parsed rate limit information.

public RateLimitInfo RateLimitInfo { get; init; }

Property Value

RateLimitInfo

RemainingPercentage

The remaining quota as a percentage (0.0 to 1.0).

public double RemainingPercentage { get; init; }

Property Value

double

RequestUri

The URI of the request that triggered this event.

public Uri? RequestUri { get; init; }

Property Value

Uri

Threshold

The threshold that was exceeded.

public double Threshold { get; init; }

Property Value

double