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