Delegate BackoffStrategy
A backoff strategy for determining how long to delay when response status is 429 (too many requests) but have a missing/invalid Retry-After header.
Namespace: Camille.RiotGames.Util
Assembly: Camille.RiotGames.dll
Syntax
public delegate double BackoffStrategy(int retries, int num429s, int num5xxs);
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retries | Number of retries (0 if this is the first attempt). |
System.Int32 | num429s | Number of previous 429 responses (0 if this is the first 429). |
System.Int32 | num5xxs |
Returns
Type | Description |
---|---|
System.Double | Seconds to delay. |