Class RequestManager
For sending rate-limited requests to the Riot API.
Manages splitting up regions and limiting concurrent connections.
Inheritance
System.Object
RequestManager
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 RequestManager
Constructors
| Improve this Doc View SourceRequestManager(IRiotGamesApiConfig)
Declaration
public RequestManager(IRiotGamesApiConfig config)
Parameters
Type | Name | Description |
---|---|---|
IRiotGamesApiConfig | config |
Methods
| Improve this Doc View SourceSend(String, String, HttpRequestMessage, CancellationToken, Boolean)
Declaration
public async Task<string> Send(string route, string methodId, HttpRequestMessage request, CancellationToken token, bool ignoreAppRateLimits)
Parameters
Type | Name | Description |
---|---|---|
System.String | route | |
System.String | methodId | |
System.Net.Http.HttpRequestMessage | request | |
System.Threading.CancellationToken | token | |
System.Boolean | ignoreAppRateLimits |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |