PartitionedRateLimiter.CreateChained<TResource> 方法

定義

public static System.Threading.RateLimiting.PartitionedRateLimiter<TResource> CreateChained<TResource> (params System.Threading.RateLimiting.PartitionedRateLimiter<TResource>[] limiters);
static member CreateChained : System.Threading.RateLimiting.PartitionedRateLimiter<'Resource>[] -> System.Threading.RateLimiting.PartitionedRateLimiter<'Resource>
Public Shared Function CreateChained(Of TResource) (ParamArray limiters As PartitionedRateLimiter(Of TResource)()) As PartitionedRateLimiter(Of TResource)

類型參數

TResource

速率受限的資源類型。

參數

limiters
PartitionedRateLimiter<TResource>[]

取得 PartitionedRateLimiter<TResource> 資源時會依序呼叫的 。

傳回

例外狀況

limiters 是 Null 參數。

limiters 是空陣列。

備註

PartitionedRateLimiter<TResource> 回的方法會依指定的順序逐一查看傳入 limiters 的 。

GetStatistics(TResource) 會傳 CurrentAvailablePermits 回 的最低值、最內部限制器的 TotalSuccessfulLeases ,以及 來自 limiters 其餘屬性的匯總值。

RateLimitLease傳回的 會匯總中繼資料,並針對重複專案,請使用具有相同中繼資料名稱的第一個租用值。

適用於