IRateLimiterPolicy<TPartitionKey> 介面

定義

介面,用來表示 RateLimiter 原則。

public interface IRateLimiterPolicy<TPartitionKey>
type IRateLimiterPolicy<'PartitionKey> = interface
Public Interface IRateLimiterPolicy(Of TPartitionKey)

類型參數

TPartitionKey

屬性

OnRejected

取得 , Func<T1,T2,TResult> 這個中介軟體會處理拒絕的要求。

方法

GetPartition(HttpContext)

RateLimitPartition<TKey>取得套用至指定 HttpContext 之 的 。

適用於