1 instantiation of RequestRegistration
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
216
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
>();
166
using var disposer = default(
RequestRegistration
.Disposer);
183
RequestRegistration
oldestRequest = _queue.DequeueHead();
216
var
registration = new RequestRegistration(permitCount, this, cancellationToken);
290
using var disposer = default(
RequestRegistration
.Disposer);
324
RequestRegistration
nextPendingRequest =
400
using var disposer = default(
RequestRegistration
.Disposer);
411
RequestRegistration
next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
474
private
RequestRegistration
? _next;
498
if (state is
RequestRegistration
registration && registration.TrySetCanceled(registration._cancellationToken))
520
private
RequestRegistration
? _next;
522
public void Add(
RequestRegistration
request)
530
for (
var
current = _next; current is not null; current = current._next)