1 instantiation of RequestRegistration
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
215
var registration = new
RequestRegistration
(permitCount, this, cancellationToken);
14 references to RequestRegistration
System.Threading.RateLimiting (14)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (14)
30
private readonly Deque<
RequestRegistration
> _queue = new Deque<
RequestRegistration
>();
165
using var disposer = default(
RequestRegistration
.Disposer);
182
RequestRegistration
oldestRequest = _queue.DequeueHead();
215
var
registration = new RequestRegistration(permitCount, this, cancellationToken);
289
using var disposer = default(
RequestRegistration
.Disposer);
323
RequestRegistration
nextPendingRequest =
399
using var disposer = default(
RequestRegistration
.Disposer);
410
RequestRegistration
next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
473
private
RequestRegistration
? _next;
497
if (state is
RequestRegistration
registration && registration.TrySetCanceled(registration._cancellationToken))
519
private
RequestRegistration
? _next;
521
public void Add(
RequestRegistration
request)
529
for (
var
current = _next; current is not null; current = current._next)