System.Threading.RateLimiting.TokenBucketRateLimiterOptions
Options to control the behavior of a TokenBucketRateLimiter.
Specified whether the TokenBucketRateLimiter is automatically replenishing tokens or if someone else
will be calling TryReplenish to replenish tokens.
Maximum cumulative token count of queued acquisition requests.
Must be set to a value >= 0 by the time these options are passed to the constructor of TokenBucketRateLimiter.
Determines the behaviour of AcquireAsync when not enough resources can be leased.
Specifies the minimum period between replenishments.
Must be set to a value greater than Zero by the time these options are passed to the constructor of TokenBucketRateLimiter.
Maximum number of tokens that can be in the bucket at any time.
Must be set to a value > 0 by the time these options are passed to the constructor of TokenBucketRateLimiter.
Specifies the maximum number of tokens to restore each replenishment.
Must be set to a value > 0 by the time these options are passed to the constructor of TokenBucketRateLimiter.
public TokenBucketRateLimiterOptions()