Dela via


PartitionedRateLimiter<TResource>.AttemptAcquireCore Method

Definition

Method that PartitionedRateLimiter<TResource> implementations implement for 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

Parameters

resource
TResource

The resource to limit.

permitCount
Int32

Number of permits to try and acquire.

Returns

Applies to