Table of Contents

Class RateLimitEvent

Namespace
PnP.Core.Services
Assembly
PnP.Core.dll

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

requestMessage HttpRequestMessage

Response for the retried request

responseMessage HttpResponseMessage

Request that's retried

Properties

Limit

Maximum number of requests per window

public int Limit { get; }

Property Value

int

Properties

Event property bag

public IDictionary<string, object> Properties { get; }

Property Value

IDictionary<string, object>

Remaining

The remaining requests in the current window.

public int Remaining { get; }

Property Value

int

Request

Request that was retried

public Uri Request { get; }

Property Value

Uri

Reset

The time, in Seconds, when the current window gets reset

public int Reset { get; }

Property Value

int