Class RateLimitEvent
Event containing information about the happened rate limit event
public sealed class RateLimitEvent : IRateLimitEvent
- Inheritance
-
RateLimitEvent
- Implements
- Inherited Members
Constructors
RateLimitEvent(HttpRequestMessage, HttpResponseMessage)
Rate limit event constructor
public RateLimitEvent(HttpRequestMessage requestMessage, HttpResponseMessage responseMessage)
Parameters
requestMessageHttpRequestMessageResponse for the retried request
responseMessageHttpResponseMessageRequest that's retried
Properties
Limit
Maximum number of requests per window
public int Limit { get; }
Property Value
Properties
Event property bag
public IDictionary<string, object> Properties { get; }
Property Value
Remaining
The remaining requests in the current window.
public int Remaining { get; }
Property Value
Request
Request that was retried
public Uri Request { get; }
Property Value
Reset
The time, in Seconds, when the current window gets reset
public int Reset { get; }