1 write to _cancellationTokenSource
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\HedgingTests.cs (1)
43_cancellationTokenSource = new CancellationTokenSource();
11 references to _cancellationTokenSource
Microsoft.Extensions.Http.Resilience.Tests (11)
Hedging\HedgingTests.cs (11)
65_cancellationTokenSource.Cancel(); 66_cancellationTokenSource.Dispose(); 107using var _ = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 127using var _ = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 152async () => await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token)); 174async () => await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token)); 200using var result = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 224using var _ = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 250using var _ = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 277using var _ = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token); 300using var result = await SendRequest(client, request, asynchronous, _cancellationTokenSource.Token);