Class RateLimit
Inheritance
System.Object
RateLimit
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Camille.RiotGames.Util
Assembly: Camille.RiotGames.dll
Syntax
public class RateLimit : IRateLimit
Constructors
| Improve this Doc View SourceRateLimit(RateLimitType, IRiotGamesApiConfig)
Declaration
public RateLimit(RateLimitType rateLimitType, IRiotGamesApiConfig config)
Parameters
Type | Name | Description |
---|---|---|
RateLimitType | rateLimitType | |
IRiotGamesApiConfig | config |
Fields
| Improve this Doc View SourceHeaderRetryAfter
Header specifying retry after time in seconds after a 429.
Declaration
public const string HeaderRetryAfter = "Retry-After"
Field Value
Type | Description |
---|---|
System.String |
HeaderXRateLimitType
Header specifying which RateLimitType caused a 429.
Declaration
public const string HeaderXRateLimitType = "X-Rate-Limit-Type"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetBuckets()
Declaration
public IReadOnlyList<ITokenBucket> GetBuckets()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<MingweiSamuel.TokenBucket.ITokenBucket> |
GetRetryAfterDelay()
Declaration
public long GetRetryAfterDelay()
Returns
Type | Description |
---|---|
System.Int64 |
OnResponse(HttpResponseMessage, Double)
Declaration
public void OnResponse(HttpResponseMessage response, double defaultRetrySeconds)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | response | |
System.Double | defaultRetrySeconds |