Base:
method
SendAsync
System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken)
46 references to SendAsync
aspire (2)
Mcp\Docs\DocsFetcher.cs (2)
52
using var response = await _httpClient.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
71
using var retryResponse = await _httpClient.
SendAsync
(retryRequest, cancellationToken).ConfigureAwait(false);
Aspire.Dashboard (1)
Model\Assistant\ChatClientFactory.cs (1)
140
using var httpResponse = await _httpClient.
SendAsync
(httpRequest, cancellationToken).ConfigureAwait(false);
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
2486
var response = await httpClient.
SendAsync
(request, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.GitHub.Models (1)
GitHubModelsHealthCheck.cs (1)
55
using var response = await httpClient.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.OpenAI (1)
OpenAIModelHealthCheck.cs (1)
45
using var response = await httpClient.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
dotnet-sourcelink (1)
Program.cs (1)
249
using var response = await client.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1242
await _httpClient.
SendAsync
(headHttpRequestMessage, cancelToken);
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
856
using var response = await httpClient.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
222
var response = await Backchannel.
SendAsync
(requestMessage, Context.RequestAborted);
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
419
HttpResponseMessage response = await _httpClient.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Http (1)
Logging\IHttpClientAsyncLogger.cs (1)
17
/// <see cref="HttpClient.
SendAsync
(HttpRequestMessage, CancellationToken)"/>), and their
Microsoft.Extensions.Http.Diagnostics.Tests (15)
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (1)
81
await client.
SendAsync
(req, It.IsAny<CancellationToken>());
Logging\HttpClientLoggerTest.cs (14)
73
await client.
SendAsync
(null!, It.IsAny<CancellationToken>()).ConfigureAwait(false);
108
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>()).ConfigureAwait(false);
151
await httpClient.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>()).ConfigureAwait(false);
238
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
335
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
439
var act = () => client.
SendAsync
(httpRequestMessage, CancellationToken.None);
556
.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>())
649
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
700
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
743
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
781
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
825
var act = () => client.
SendAsync
(httpRequestMessage, CancellationToken.None);
924
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
972
await client.
SendAsync
(httpRequestMessage, It.IsAny<CancellationToken>());
Microsoft.Extensions.Http.Resilience.PerformanceTests (10)
HedgingBenchmark.cs (1)
37
public Task<HttpResponseMessage> HedgingCall() => _client.
SendAsync
(Request, CancellationToken.None);
HttpResilienceBenchmark.cs (5)
48
return _client.
SendAsync
(Request, CancellationToken.None);
54
return _singleHandlerClient.
SendAsync
(Request, CancellationToken.None);
60
return _standardClient.
SendAsync
(Request, CancellationToken.None);
66
return _hedgingClientNoRoutes.
SendAsync
(Request, CancellationToken.None);
72
return _hedgingClientOrdered.
SendAsync
(Request, CancellationToken.None);
RetryBenchmark.cs (2)
71
return _v7!.
SendAsync
(Request, _cancellationToken);
77
return _v8!.
SendAsync
(Request, _cancellationToken);
StandardResilienceBenchmark.cs (2)
73
return _v7!.
SendAsync
(Request, _cancellationToken);
79
return _v8!.
SendAsync
(Request, _cancellationToken);
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\HedgingTests.cs (1)
321
return client.
SendAsync
(request, cancellationToken);
Microsoft.NET.Build.Containers (3)
Registry\DefaultBlobOperations.cs (1)
33
using HttpResponseMessage response = await _client.
SendAsync
(new HttpRequestMessage(HttpMethod.Head, new Uri(_baseUri, $"/v2/{repositoryName}/blobs/{digest}")), cancellationToken).ConfigureAwait(false);
Registry\DefaultBlobUploadOperations.cs (1)
110
using HttpResponseMessage patchResponse = await _client.
SendAsync
(patchMessage, cancellationToken).ConfigureAwait(false);
Registry\DefaultManifestOperations.cs (1)
31
HttpResponseMessage response = await _client.
SendAsync
(request, cancellationToken).ConfigureAwait(false);
System.Net.Http (4)
System\Net\Http\HttpClient.cs (4)
393
return
SendAsync
(request, cancellationToken);
409
return
SendAsync
(request, cancellationToken);
425
return
SendAsync
(request, cancellationToken);
438
SendAsync
(CreateRequestMessage(HttpMethod.Delete, requestUri), cancellationToken);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1357
await _httpClient.
SendAsync
(headHttpRequestMessage, cancelToken);