1 instantiation of ConcurrencyLimiter
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
39
return Get(partitionKey, key => new
ConcurrencyLimiter
(factory(key)));
13 references to ConcurrencyLimiter
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
102
/// Registers a new <see cref="
ConcurrencyLimiter
"/> with the given <see cref="ConcurrencyLimiterOptions"/> to the application.
System.Threading.RateLimiting (12)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (8)
37
/// Initializes the <see cref="
ConcurrencyLimiter
"/>.
39
/// <param name="options">Options to specify the behavior of the <see cref="
ConcurrencyLimiter
"/>.</param>
358
throw new ObjectDisposedException(nameof(
ConcurrencyLimiter
));
367
private readonly
ConcurrencyLimiter
? _limiter;
371
public ConcurrencyLease(bool isAcquired,
ConcurrencyLimiter
? limiter, int count, string? reason = null)
421
public RequestRegistration(int permitCount,
ConcurrencyLimiter
limiter, CancellationToken cancellationToken)
445
var
limiter = (
ConcurrencyLimiter
)registration.Task.AsyncState!;
System\Threading\RateLimiting\ConcurrencyLimiterOptions.cs (3)
7
/// Options to specify the behavior of a <see cref="
ConcurrencyLimiter
"/>.
13
/// Must be set to a value > 0 by the time these options are passed to the constructor of <see cref="
ConcurrencyLimiter
"/>.
27
/// Must be set to a value >= 0 by the time these options are passed to the constructor of <see cref="
ConcurrencyLimiter
"/>.
System\Threading\RateLimiting\RateLimitPartition.cs (1)
29
/// Defines a partition with a <see cref="
ConcurrencyLimiter
"/> with the given <see cref="ConcurrencyLimiterOptions"/>.