Throttles the
GitHubAppsClient
when AbuseException
or RateLimitExceededException
is received.
- Namespace
- Statiq
.Web .GitHub - Containing Type
- Git
Hub Client Extensions
Syntax
public static Task ThrottleAsync(this GitHubClient client, Func<GitHubClient, Task> operation, IExecutionContext context)
Remarks
Adapted from https://github.com/octokit/octokit.net/issues/1792#issue-311651300, see that issue for a more detailed discussion.
Parameters
Name | Type | Description |
---|---|---|
client | GitHubClient | |
operation | Func |
|
context | IExecutionContext |
Return Value
Type | Description |
---|---|
Task |