Partilhar via


PartitionedRateLimiter<TResource>.AttemptAcquireCore Método

Definição

Método que PartitionedRateLimiter<TResource> as implementações implementam para AttemptAcquire(TResource, Int32).

protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore (TResource resource, int permitCount);
abstract member AttemptAcquireCore : 'Resource * int -> System.Threading.RateLimiting.RateLimitLease
Protected MustOverride Function AttemptAcquireCore (resource As TResource, permitCount As Integer) As RateLimitLease

Parâmetros

resource
TResource

O recurso a ser limitado.

permitCount
Int32

Número de permissões para tentar adquirir.

Retornos

Aplica-se a