ข้ามไปยังเนื้อหา

Class CephalonRateLimitingEndpointConventionBuilderExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll

Applies Cephalon ASP.NET Core rate-limiting conventions to endpoint builders by consulting the host’s effective rate-limiting policy catalog.

public static class CephalonRateLimitingEndpointConventionBuilderExtensions

objectCephalonRateLimitingEndpointConventionBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

ApplyCephalonRateLimiting<TBuilder>(TBuilder, IServiceProvider, string, string?)

Section titled “ ApplyCephalonRateLimiting<TBuilder>(TBuilder, IServiceProvider, string, string?)”

Applies the effective Cephalon rate-limiting policy for the supplied transport and optional behavior identifier onto the endpoint builder.

public static TBuilder ApplyCephalonRateLimiting<TBuilder>(this TBuilder builder, IServiceProvider services, string transportId, string? behaviorId = null) where TBuilder : IEndpointConventionBuilder

builder TBuilder

The endpoint builder to configure.

services IServiceProvider

The application service provider.

transportId string

The transport identifier used by the endpoint.

behaviorId string?

The optional behavior identifier when the endpoint maps a single behavior.

TBuilder

The same builder instance for fluent composition.

TBuilder

The endpoint convention builder type.

HasCephalonRateLimiting(IServiceProvider, string, string?)

Section titled “ HasCephalonRateLimiting(IServiceProvider, string, string?)”

Determines whether the effective Cephalon rate-limiting policy for the supplied transport and optional behavior identifier actively enforces a limiter.

public static bool HasCephalonRateLimiting(this IServiceProvider services, string transportId, string? behaviorId = null)

services IServiceProvider

The application service provider.

transportId string

The transport identifier used by the endpoint.

behaviorId string?

The optional behavior identifier when the endpoint maps a single behavior.

bool

true when the endpoint will require a limiter; otherwise false.