1 instantiation of RequestRegistration
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
203
var registration = new
RequestRegistration
(permitCount, this, cancellationToken);
14 references to RequestRegistration
System.Threading.RateLimiting (14)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (14)
27
private readonly Deque<
RequestRegistration
> _queue = new Deque<
RequestRegistration
>();
153
using var disposer = default(
RequestRegistration
.Disposer);
170
RequestRegistration
oldestRequest = _queue.DequeueHead();
203
var
registration = new RequestRegistration(permitCount, this, cancellationToken);
283
using var disposer = default(
RequestRegistration
.Disposer);
313
RequestRegistration
nextPendingRequest =
386
using var disposer = default(
RequestRegistration
.Disposer);
397
RequestRegistration
next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
460
private
RequestRegistration
? _next;
484
if (state is
RequestRegistration
registration && registration.TrySetCanceled(registration._cancellationToken))
506
private
RequestRegistration
? _next;
508
public void Add(
RequestRegistration
request)
516
for (
var
current = _next; current is not null; current = current._next)