1 instantiation of RequestRegistration
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
204
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
>();
154
using var disposer = default(
RequestRegistration
.Disposer);
171
RequestRegistration
oldestRequest = _queue.DequeueHead();
204
var
registration = new RequestRegistration(permitCount, this, cancellationToken);
284
using var disposer = default(
RequestRegistration
.Disposer);
314
RequestRegistration
nextPendingRequest =
387
using var disposer = default(
RequestRegistration
.Disposer);
398
RequestRegistration
next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
461
private
RequestRegistration
? _next;
485
if (state is
RequestRegistration
registration && registration.TrySetCanceled(registration._cancellationToken))
507
private
RequestRegistration
? _next;
509
public void Add(
RequestRegistration
request)
517
for (
var
current = _next; current is not null; current = current._next)