Base:
method
SendAsync
System.Net.Http.HttpMessageInvoker.SendAsync(System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken)
53 references to SendAsync
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
287var deleteResponse = await client.SendAsync(deleteRequest, cancellationToken).ConfigureAwait(false);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1242await _httpClient.SendAsync(headHttpRequestMessage, cancelToken);
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)
599var parResponseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted); 994var responseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted); 1060var responseMessage = await Backchannel.SendAsync(requestMessage, Context.RequestAborted);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
266return 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.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
256var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.SendAsync(message, CancellationToken.None));
Microsoft.DotNet.Internal.SymbolHelper (4)
SymbolPromotionHelper.cs (3)
155using HttpResponseMessage regResponse = await s_client.SendAsync(registerRequest, ct); 208using HttpResponseMessage statusResponse = await s_client.SendAsync(statusRequest, ct); 271using HttpResponseMessage statusResponse = await s_client.SendAsync(statusRequest, ct);
SymbolUploadHelperFactory.cs (1)
155using HttpResponseMessage response = await s_symbolDownloadClient.SendAsync(getToolRequest, token).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)
80await 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>()); 334await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 436var act = () => client.SendAsync(httpRequestMessage, CancellationToken.None); 552.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()) 644await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 694await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 737await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 775await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 819var act = () => client.SendAsync(httpRequestMessage, CancellationToken.None); 918await client.SendAsync(httpRequestMessage, It.IsAny<CancellationToken>()); 964await 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);
SocialSample (2)
Startup.cs (2)
141var response = await context.Backchannel.SendAsync(request, context.HttpContext.RequestAborted); 202var response = await context.Backchannel.SendAsync(request, context.HttpContext.RequestAborted);
Stress.AppHost (1)
ResourceBuilderExtensions.cs (1)
66var response = await httpClient.SendAsync(request, context.CancellationToken);
System.Net.Http (4)
System\Net\Http\HttpClient.cs (4)
400return SendAsync(request, cancellationToken); 416return SendAsync(request, cancellationToken); 432return SendAsync(request, cancellationToken); 445SendAsync(CreateRequestMessage(HttpMethod.Delete, requestUri), cancellationToken);