1 instantiation of PooledCancellationTokenSource
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CancellationTokenSourcePool.cs (1)
22
return new
PooledCancellationTokenSource
(this);
5 references to PooledCancellationTokenSource
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Middleware\HttpsConnectionMiddleware.cs (1)
162
using
var
cancellationTokenSource = _ctsPool.Rent();
src\Shared\CancellationTokenSourcePool.cs (4)
12
private readonly ConcurrentQueue<
PooledCancellationTokenSource
> _queue = new();
15
public
PooledCancellationTokenSource
Rent()
17
if (_queue.TryDequeue(out
var
cts))
25
private bool Return(
PooledCancellationTokenSource
cts)