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

설명

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

적용 대상