Show / Hide Table of Contents

Class RateLimit

Inheritance
System.Object
RateLimit
Implements
IRateLimit
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 Source

RateLimit(RateLimitType, IRiotGamesApiConfig)

Declaration
public RateLimit(RateLimitType rateLimitType, IRiotGamesApiConfig config)
Parameters
Type Name Description
RateLimitType rateLimitType
IRiotGamesApiConfig config

Fields

| Improve this Doc View Source

HeaderRetryAfter

Header specifying retry after time in seconds after a 429.

Declaration
public const string HeaderRetryAfter = "Retry-After"
Field Value
Type Description
System.String
| Improve this Doc View Source

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 Source

GetBuckets()

Declaration
public IReadOnlyList<ITokenBucket> GetBuckets()
Returns
Type Description
System.Collections.Generic.IReadOnlyList<MingweiSamuel.TokenBucket.ITokenBucket>
| Improve this Doc View Source

GetRetryAfterDelay()

Declaration
public long GetRetryAfterDelay()
Returns
Type Description
System.Int64
| Improve this Doc View Source

OnResponse(HttpResponseMessage, Double)

Declaration
public void OnResponse(HttpResponseMessage response, double defaultRetrySeconds)
Parameters
Type Name Description
System.Net.Http.HttpResponseMessage response
System.Double defaultRetrySeconds

Implements

IRateLimit
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX