C# Class RiotSharp.RateLimitedRequester

Inheritance: Requester
显示文件 Open project: BenFradet/RiotSharp Class Usage Examples

Public Methods

Method Description
CreateGetRequest ( string relativeUrl, Region region, List addedArguments = null, bool useHttps = true ) : string
CreateGetRequestAsync ( string relativeUrl, Region region, List addedArguments = null, bool useHttps = true ) : Task
CreatePostRequest ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : string
CreatePostRequestAsync ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : Task
CreatePutRequest ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : bool
CreatePutRequestAsync ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : Task

Private Methods

Method Description
HandleRateLimit ( Region region ) : void
RateLimitedRequester ( string apiKey, int rateLimitPer10s, int rateLimitPer10m ) : System

Method Details

CreateGetRequest() public method

public CreateGetRequest ( string relativeUrl, Region region, List addedArguments = null, bool useHttps = true ) : string
relativeUrl string
region Region
addedArguments List
useHttps bool
return string

CreateGetRequestAsync() public method

public CreateGetRequestAsync ( string relativeUrl, Region region, List addedArguments = null, bool useHttps = true ) : Task
relativeUrl string
region Region
addedArguments List
useHttps bool
return Task

CreatePostRequest() public method

public CreatePostRequest ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : string
relativeUrl string
region Region
body string
addedArguments List
useHttps bool
return string

CreatePostRequestAsync() public method

public CreatePostRequestAsync ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : Task
relativeUrl string
region Region
body string
addedArguments List
useHttps bool
return Task

CreatePutRequest() public method

public CreatePutRequest ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : bool
relativeUrl string
region Region
body string
addedArguments List
useHttps bool
return bool

CreatePutRequestAsync() public method

public CreatePutRequestAsync ( string relativeUrl, Region region, string body, List addedArguments = null, bool useHttps = true ) : Task
relativeUrl string
region Region
body string
addedArguments List
useHttps bool
return Task