Struct RateLimiterAdapterRejectedEvent

Namespace
Kevlar.Extensions.RateLimiting
Assembly
Kevlar.Extensions.RateLimiting.dll

Describes an execution rejected by an adapted rate limiter.

public readonly struct RateLimiterAdapterRejectedEvent
Inherited Members

Properties

Context

The ambient execution context. It is pooled; do not retain it after synchronous and asynchronous rejection callbacks complete.

public KevlarContext Context { get; }

Property Value

KevlarContext

Metadata

An immutable snapshot of all metadata supplied by the rejected lease.

public IReadOnlyDictionary<string, object?> Metadata { get; }

Property Value

IReadOnlyDictionary<string, object>

PermitCount

The number of permits requested for the execution.

public int PermitCount { get; }

Property Value

int

RetryAfter

The lease-provided delay before another acquisition should be attempted.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?