共用方式為


RateLimitPartition 類別

定義

public static class RateLimitPartition
type RateLimitPartition = class
Public Class RateLimitPartition
繼承
RateLimitPartition

方法

Get<TKey>(TKey, Func<TKey,RateLimiter>)

使用指定的速率限制器處理站定義資料分割。

GetConcurrencyLimiter<TKey>(TKey, Func<TKey,ConcurrencyLimiterOptions>)

使用 ConcurrencyLimiter 指定的 ConcurrencyLimiterOptions 定義具有 的資料分割。

GetFixedWindowLimiter<TKey>(TKey, Func<TKey,FixedWindowRateLimiterOptions>)

使用 FixedWindowRateLimiter 指定的 FixedWindowRateLimiterOptions 定義具有 的資料分割。

GetNoLimiter<TKey>(TKey)

定義沒有速率限制子的資料分割。 這表示對 指定 AcquireAsync(TResource, Int32, CancellationToken)partitionKey 的任何呼叫 AttemptAcquire(TResource, Int32) 一律會成功。

GetSlidingWindowLimiter<TKey>(TKey, Func<TKey,SlidingWindowRateLimiterOptions>)

使用 SlidingWindowRateLimiter 指定的 SlidingWindowRateLimiterOptions 定義具有 的資料分割。

GetTokenBucketLimiter<TKey>(TKey, Func<TKey,TokenBucketRateLimiterOptions>)

使用 TokenBucketRateLimiter 指定的 TokenBucketRateLimiterOptions 定義具有 的資料分割。

適用於