Skip to content

RateLimitResult

Record struct in Oadm.Sdk.Network · Oadm.Sdk.dll

The answer of KeyedRateLimiter<TKey>.Check for one request.

public readonly record struct RateLimitResult(RateLimitDecision Decision, int DueNotices)

Parameters

RateLimitDecision Decision { get; init; }

What to do with the request.

int DueNotices { get; init; }

Bit i set: notice i (KeyedRateLimitOptions.NoticeIntervals) is due now.

bool IsDue(int notice)

Whether notice notice is due now.