RiotNet  8.0.0
A C#/.NET client for the Riot Games API.
Public Member Functions | Public Attributes | List of all members
RiotNet.RateLimiter.RateLimitTracker Class Reference

Represents a request count for a rate limiting rule. More...

Public Member Functions

DateTime GetDelayTime (string platformId, DateTime now)
 Gets the time to delay until for a single rate limit rule. More...
 

Public Attributes

RateLimitRule Rule
 The rule being tracked. More...
 
ConcurrentDictionary< string, RequestCountRequestCounts = new ConcurrentDictionary<string, RequestCount>()
 The list of recent request counts for each PlatformId. More...
 

Detailed Description

Represents a request count for a rate limiting rule.

Member Function Documentation

DateTime RiotNet.RateLimiter.RateLimitTracker.GetDelayTime ( string  platformId,
DateTime  now 
)
inline

Gets the time to delay until for a single rate limit rule.

Parameters
platformIdThe platform ID of the default server to connect to. This should equal one of the Models.PlatformId values.
nowThe current time in UTC.
Returns
The time to delay until.

Member Data Documentation

ConcurrentDictionary<string, RequestCount> RiotNet.RateLimiter.RateLimitTracker.RequestCounts = new ConcurrentDictionary<string, RequestCount>()

The list of recent request counts for each PlatformId.

RateLimitRule RiotNet.RateLimiter.RateLimitTracker.Rule

The rule being tracked.


The documentation for this class was generated from the following file: