Share via


RateLimitPartition.GetNoLimiter<TKey>(TKey) Method

Definition

Defines a partition that will not have a rate limiter. This means any calls to AttemptAcquire(TResource, Int32) or AcquireAsync(TResource, Int32, CancellationToken) will always succeed for the given partitionKey.

public static System.Threading.RateLimiting.RateLimitPartition<TKey> GetNoLimiter<TKey> (TKey partitionKey);
static member GetNoLimiter : 'Key -> System.Threading.RateLimiting.RateLimitPartition<'Key>
Public Shared Function GetNoLimiter(Of TKey) (partitionKey As TKey) As RateLimitPartition(Of TKey)

Type Parameters

TKey

The type to distinguish partitions with.

Parameters

partitionKey
TKey

The specific key for this partition.

Returns

Applies to