RateLimitPartition<TKey>(TKey, Func<TKey,RateLimiter>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.