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
Decision: What to do with the request.DueNotices: Bit i set: notice i (KeyedRateLimitOptions.NoticeIntervals) is due now.
Properties
Section titled “Properties”Decision
Section titled “Decision”RateLimitDecision Decision { get; init; }What to do with the request.
DueNotices
Section titled “DueNotices”int DueNotices { get; init; }Bit i set: notice i (KeyedRateLimitOptions.NoticeIntervals) is due now.
Methods
Section titled “Methods”bool IsDue(int notice)Whether notice notice is due now.