RateLimitPartition.GetConcurrencyLimiter<TKey> 메서드

정의

지정된 ConcurrencyLimiterOptions를 사용하여 를 사용하여 ConcurrencyLimiter 파티션을 정의합니다.

public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetConcurrencyLimiter<TKey> (TKey partitionKey, Func<TKey,System.Threading.RateLimiting.ConcurrencyLimiterOptions> factory);
static member GetConcurrencyLimiter : 'Key * Func<'Key, System.Threading.RateLimiting.ConcurrencyLimiterOptions> -> System.Threading.RateLimiting.RateLimitPartition<'Key>
Public Shared Function GetConcurrencyLimiter(Of TKey) (partitionKey As TKey, factory As Func(Of TKey, ConcurrencyLimiterOptions)) As RateLimitPartition(Of TKey)

형식 매개 변수

TKey

파티션을 구분할 형식입니다.

매개 변수

partitionKey
TKey

이 파티션의 특정 키입니다. 를 호출factory하기 전에 캐시된 기존 리미터에 대해 검사 데 사용됩니다.

factory
Func<TKey,ConcurrencyLimiterOptions>

지정된 partitionKey 에 대한 속도 제한기가 필요할 때 호출되는 함수입니다. 이렇게 하면 여러 호출에서 의 ConcurrencyLimiterOptions 동일한 instance 반환할 수 있습니다.

반환

적용 대상