6 references to AcquireAsync
Microsoft.AspNetCore.RateLimiting (2)
RateLimitingMiddleware.cs (2)
219
globalLease = await _globalLimiter.
AcquireAsync
(context, cancellationToken: cancellationToken);
225
endpointLease = await _endpointLimiter.
AcquireAsync
(context, cancellationToken: cancellationToken);
System.Threading.RateLimiting (4)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
91
lease = await _limiters[i].
AcquireAsync
(resource, permitCount, cancellationToken).ConfigureAwait(false);
System\Threading\RateLimiting\PartitionedRateLimiter.T.cs (1)
75
/// Method that <see cref="PartitionedRateLimiter{TResource}"/> implementations implement for <see cref="
AcquireAsync
"/>.
System\Threading\RateLimiting\RateLimitPartition.cs (1)
44
/// This means any calls to <see cref="PartitionedRateLimiter{TResource}.AttemptAcquire(TResource, int)"/> or <see cref="PartitionedRateLimiter{TResource}.
AcquireAsync
(TResource, int, CancellationToken)"/> will always succeed for the given <paramref name="partitionKey"/>.
System\Threading\RateLimiting\TranslatingLimiter.cs (1)
41
return _innerRateLimiter.
AcquireAsync
(key, permitCount, cancellationToken);