Interface IRateLimitingRuntimeCatalog
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Resilience
Assembly: Cephalon.Abstractions.dll
Exposes the active HTTP rate-limiting policies visible to the current runtime.
public interface IRateLimitingRuntimeCatalogRemarks
Section titled “Remarks”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.
Properties
Section titled “Properties”Policies
Section titled “ Policies”Gets all rate-limiting policies visible to the current runtime.
IReadOnlyList<RateLimitingRuntimeDescriptor> Policies { get; }Property Value
Section titled “Property Value”IReadOnlyList<RateLimitingRuntimeDescriptor>
Methods
Section titled “Methods”GetById(string)
Section titled “ GetById(string)”Gets one rate-limiting policy by its stable identifier.
RateLimitingRuntimeDescriptor? GetById(string policyId)Parameters
Section titled “Parameters”policyId string
The policy identifier to resolve.
Returns
Section titled “Returns”RateLimitingRuntimeDescriptor?
The matching policy descriptor, or null when it is not active.
GetByTransportId(string)
Section titled “ GetByTransportId(string)”Gets all rate-limiting policies that apply to the requested transport identifier.
IReadOnlyList<RateLimitingRuntimeDescriptor> GetByTransportId(string transportId)Parameters
Section titled “Parameters”transportId string
The stable transport identifier to filter by.
Returns
Section titled “Returns”IReadOnlyList<RateLimitingRuntimeDescriptor>
The matching policies, or an empty list when none target the transport.