PartitionedRateLimiter<TResource>.AttemptAcquireCore Method
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.
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.