Class RateLimit
A token bucket for each client: one request per Period on average and up to Burst at once, with up to QueueLimit more waiting their turn.
public sealed record RateLimit : IEquatable<RateLimit>
- Inheritance
-
RateLimit
- Implements
- Inherited Members
Constructors
RateLimit(TimeSpan, int, int)
A token bucket for each client: one request per Period on average and up to Burst at once, with up to QueueLimit more waiting their turn.
public RateLimit(TimeSpan Period, int Burst, int QueueLimit)
Parameters
Properties
Burst
public int Burst { get; init; }
Property Value
Period
public TimeSpan Period { get; init; }
Property Value
QueueLimit
public int QueueLimit { get; init; }