Table of Contents

Class RateLimit

Namespace
The.RPC
Assembly
Instagile.dll

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

Period TimeSpan
Burst int
QueueLimit int

Properties

Burst

public int Burst { get; init; }

Property Value

int

Period

public TimeSpan Period { get; init; }

Property Value

TimeSpan

QueueLimit

public int QueueLimit { get; init; }

Property Value

int