語言

RateLimitPartition<TKey> 結構

定義

generic <typename TKey>
public value class RateLimitPartition
public struct RateLimitPartition<TKey>
type RateLimitPartition<'Key> = struct
Public Structure RateLimitPartition(Of TKey)

類型參數

TKey

區分區的類型。

繼承
RateLimitPartition<TKey>

建構函式

名稱 Description
RateLimitPartition<TKey>(TKey, Func<TKey,RateLimiter>)

構造 在 RateLimitPartition<TKey> 中使用 Create<TResource,TPartitionKey>(Func<TResource,RateLimitPartition<TPartitionKey>>, IEqualityComparer<TPartitionKey>)。

屬性

名稱 Description
Factory

當需要對特定 partitionKey 使用速率限制器時,會呼叫這個函式。

PartitionKey

這個分割區的特定金鑰。

適用於