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

Definición

public:
 RateLimitPartition(TKey partitionKey, Func<TKey, System::Threading::RateLimiting::RateLimiter ^> ^ factory);
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))

Parámetros

partitionKey
TKey

Clave específica para esta partición.

factory
Func<TKey,RateLimiter>

Se llama a la función cuando se necesita un limitador de velocidad para el especificado partitionKey .

Se aplica a