Skip to content

Interface IRateLimitingRuntimeCatalog

Namespace: Cephalon.Abstractions.Resilience
Assembly: Cephalon.Abstractions.dll

Exposes the active HTTP rate-limiting policies visible to the current runtime.

public interface IRateLimitingRuntimeCatalog

Implementations describe the effective policy applied by the active host adapter, such as ASP.NET Core middleware-based request limiting. This surface is runtime-facing rather than app-model-facing because it reflects what the host actually enforces after defaults and host exclusions have been applied.

Gets all rate-limiting policies visible to the current runtime.

IReadOnlyList<RateLimitingRuntimeDescriptor> Policies { get; }

IReadOnlyList<RateLimitingRuntimeDescriptor>

Gets one rate-limiting policy by its stable identifier.

RateLimitingRuntimeDescriptor? GetById(string policyId)

policyId string

The policy identifier to resolve.

RateLimitingRuntimeDescriptor?

The matching policy descriptor, or null when it is not active.

Gets all rate-limiting policies that apply to the requested transport identifier.

IReadOnlyList<RateLimitingRuntimeDescriptor> GetByTransportId(string transportId)

transportId string

The stable transport identifier to filter by.

IReadOnlyList<RateLimitingRuntimeDescriptor>

The matching policies, or an empty list when none target the transport.