1 instantiation of RequestRegistration
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
209
var registration = new
RequestRegistration
(tokenCount, this, cancellationToken);
15 references to RequestRegistration
System.Threading.RateLimiting (15)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (15)
28
private readonly Deque<
RequestRegistration
> _queue = new Deque<
RequestRegistration
>();
159
using var disposer = default(
RequestRegistration
.Disposer);
176
RequestRegistration
oldestRequest = _queue.DequeueHead();
209
var
registration = new RequestRegistration(tokenCount, this, cancellationToken);
291
using var disposer = default(
RequestRegistration
.Disposer);
323
Deque<
RequestRegistration
> queue = _queue;
328
RequestRegistration
nextPendingRequest =
401
using var disposer = default(
RequestRegistration
.Disposer);
412
RequestRegistration
next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
475
private
RequestRegistration
? _next;
499
if (state is
RequestRegistration
registration && registration.TrySetCanceled(registration._cancellationToken))
521
private
RequestRegistration
? _next;
523
public void Add(
RequestRegistration
request)
531
for (
var
current = _next; current is not null; current = current._next)