RateLimiterOptionsExtensions.AddFixedWindowLimiter 메서드

정의

애플리케이션에 지정된 FixedWindowRateLimiterOptions 를 사용하여 새 FixedWindowRateLimiter 를 등록합니다. 리미터는 를 통해 또는 를 통해 RequireRateLimiting<TBuilder>(TBuilder, String)엔드포인트에 EnableRateLimitingAttribute추가할 수 있습니다.

public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddFixedWindowLimiter (this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, Action<System.Threading.RateLimiting.FixedWindowRateLimiterOptions> configureOptions);
static member AddFixedWindowLimiter : Microsoft.AspNetCore.RateLimiting.RateLimiterOptions * string * Action<System.Threading.RateLimiting.FixedWindowRateLimiterOptions> -> Microsoft.AspNetCore.RateLimiting.RateLimiterOptions
<Extension()>
Public Function AddFixedWindowLimiter (options As RateLimiterOptions, policyName As String, configureOptions As Action(Of FixedWindowRateLimiterOptions)) As RateLimiterOptions

매개 변수

options
RateLimiterOptions

RateLimiterOptions 제한기를 추가할 입니다.

policyName
String

리미터와 연결할 이름입니다.

configureOptions
Action<FixedWindowRateLimiterOptions>

리미터에 사용할 을 FixedWindowRateLimiterOptions 구성하는 콜백입니다.

반환

RateLimiterOptions입니다.

설명

이 리미터가 에 추가되면 이 리미티어가 보충을 제어하므로 설정 AutoReplenishment 은 여기에 PartitionedRateLimiter 영향을 주지 않습니다.

적용 대상