Base:
method
SendAsync
System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken)
79 references to SendAsync
aspire (7)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
433using var response = await httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
52using var response = await httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
Documentation\CachedHttpDocumentFetcher.cs (1)
47using var response = await httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
src\Shared\Telemetry\InternalMicrosoftDetector.cs (3)
1034using var userResponse = await http.SendAsync(userRequest, cancellationToken).ConfigureAwait(false); 1055using var membershipResponse = await http.SendAsync(membershipRequest, cancellationToken).ConfigureAwait(false); 1077using var publicMemberResponse = await http.SendAsync(publicMemberRequest, cancellationToken).ConfigureAwait(false);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
339using var response = await client.SendAsync(request, cancellationToken).ConfigureAwait(false);
Aspire.Dashboard (3)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (3)
1034using var userResponse = await http.SendAsync(userRequest, cancellationToken).ConfigureAwait(false); 1055using var membershipResponse = await http.SendAsync(membershipRequest, cancellationToken).ConfigureAwait(false); 1077using var publicMemberResponse = await http.SendAsync(publicMemberRequest, cancellationToken).ConfigureAwait(false);
Aspire.Deployment.EndToEnd.Tests (7)
AcaExpressDeploymentTests.cs (2)
323using var response = await client.SendAsync(request, cancellationToken); 370using var wrongSecret = await client.SendAsync(wrongSecretRequest, readiness.Token);
AzureEntraIdDeploymentTests.cs (1)
365return await client.SendAsync(request, cancellationToken);
FoundryHostedAgentDeploymentTests.cs (3)
232using var resourcesResponse = await client.SendAsync(resourcesRequest, cancellationToken); 250using var projectResponse = await client.SendAsync(projectRequest, cancellationToken); 265using var connectionsResponse = await client.SendAsync(connectionsRequest, cancellationToken);
Helpers\DotnetProjectDeploymentHelpers.cs (1)
80using var response = await client.SendAsync(request, cancellationToken);
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
4113response = await httpClient.SendAsync(request, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Sandboxes (1)
Internal\Adc\AzureDevComputeClient.cs (1)
434return await httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Foundry (4)
FoundryLocalHealthCheck.cs (2)
23.SendAsync(request, cancellationToken) 32.SendAsync(legacyRequest, cancellationToken)
FoundryLocalService.cs (1)
132using var response = await httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
Toolbox\FoundryToolboxReadinessProbe.cs (1)
176using var response = await client.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.Google (1)
GoogleHandler.cs (1)
50var response = await Backchannel.SendAsync(request, Context.RequestAborted);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
46var response = await Backchannel.SendAsync(request, Context.RequestAborted);
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
222var response = await Backchannel.SendAsync(requestMessage, Context.RequestAborted);
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
604var parResponseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted); 1000var responseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted); 1066var responseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
267return await Backchannel.SendAsync(request, Context.RequestAborted);
Microsoft.AspNetCore.Http.Connections.Client (2)
Internal\LongPollingTransport.cs (2)
57using (var response = await _httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false)) 160response = await _httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.SpaServices.Extensions (1)
AngularCli\AngularCliMiddleware.cs (1)
113await client.SendAsync(
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\HttpTelemetryUploadTransport.cs (1)
51using var response = await _client.SendAsync(request, cancellationToken).ConfigureAwait(false);
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 (17)
Latency\Internal\HttpLatencyMediatorTests.cs (1)
83await client.SendAsync(req, It.IsAny<CancellationToken>());
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (1)
81await client.SendAsync(req, It.IsAny<CancellationToken>());
Logging\HttpClientLoggerTest.cs (15)
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>()); 280await client.SendAsync(request, It.IsAny<CancellationToken>()); 364await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 468var act = () => client.SendAsync(httpRequestMessage, CancellationToken.None); 585.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()) 678await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 729await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 772await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 810await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 854var act = () => client.SendAsync(httpRequestMessage, CancellationToken.None); 953await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 1001await 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)
314return client.SendAsync(request, cancellationToken);
Microsoft.Extensions.Logging.AzureAppServices (2)
BlobAppendReferenceWrapper.cs (2)
41return _client.SendAsync(message, cancellationToken); 61response = await _client.SendAsync(message, cancellationToken).ConfigureAwait(false);
Microsoft.NET.Build.Containers (4)
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 (2)
31using HttpResponseMessage response = await _client.SendAsync(request, cancellationToken).ConfigureAwait(false); 44HttpResponseMessage response = await _client.SendAsync(request, cancellationToken).ConfigureAwait(false);
System.Net.Http (4)
System\Net\Http\HttpClient.cs (4)
402return SendAsync(request, cancellationToken); 418return SendAsync(request, cancellationToken); 434return SendAsync(request, cancellationToken); 447SendAsync(CreateRequestMessage(HttpMethod.Delete, requestUri), cancellationToken);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1357await _httpClient.SendAsync(headHttpRequestMessage, cancelToken);