5 references to ConcurrencyLease
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (5)
27private static readonly ConcurrencyLease SuccessfulLease = new ConcurrencyLease(true, null, 0);
28private static readonly ConcurrencyLease FailedLease = new ConcurrencyLease(false, null, 0);
29private static readonly ConcurrencyLease QueueLimitLease = new ConcurrencyLease(false, null, 0, "Queue limit reached");
217lease = new ConcurrencyLease(true, this, permitCount);
283ConcurrencyLease lease = nextPendingRequest.Count == 0 ? SuccessfulLease : new ConcurrencyLease(true, this, nextPendingRequest.Count);