Share via


RateLimitPartition<TKey>(TKey, Func<TKey,RateLimiter>) Constructor

Definition

public RateLimitPartition (TKey partitionKey, Func<TKey,System.Threading.RateLimiting.RateLimiter> factory);
new System.Threading.RateLimiting.RateLimitPartition<'Key> : 'Key * Func<'Key, System.Threading.RateLimiting.RateLimiter> -> System.Threading.RateLimiting.RateLimitPartition<'Key>
Public Sub New (partitionKey As TKey, factory As Func(Of TKey, RateLimiter))

Parameters

partitionKey
TKey

The specific key for this partition.

factory
Func<TKey,RateLimiter>

The function called when a rate limiter for the given partitionKey is needed.

Applies to