1 override of SendAsync
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
506
public override Task<HttpResponseMessage>
SendAsync
(HttpRequestMessage request, CancellationToken cancellationToken) =>
58 references to SendAsync
Interop.FunctionalTests (45)
Http2\Http2RequestTests.cs (4)
130
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
187
var response = await client.
SendAsync
(request1, CancellationToken.None);
214
var responseMessage = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
298
var responseMessage = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
Http3\Http3RequestTests.cs (34)
93
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
153
var responseMessage = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
255
var response = await client.
SendAsync
(request, CancellationToken.None);
299
var responseTask = client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
379
var responseTask = client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
423
var responseTask = client.
SendAsync
(request, CancellationToken.None);
494
var responseTask = client.
SendAsync
(request, cts.Token);
565
var sendTask = client.
SendAsync
(request, CancellationToken.None);
624
var sendTask = client.
SendAsync
(request, CancellationToken.None);
680
var ex = await Assert.ThrowsAnyAsync<HttpRequestException>(() => client.
SendAsync
(request, CancellationToken.None)).DefaultTimeout();
733
var responseTask = client.
SendAsync
(request, cts.Token);
819
var response = await client.
SendAsync
(request, CancellationToken.None);
855
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
866
var response2 = await client.
SendAsync
(request2, CancellationToken.None);
915
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
928
var response2 = await client.
SendAsync
(request2, CancellationToken.None);
944
var response3 = await client.
SendAsync
(request3, CancellationToken.None);
1374
var response = await client.
SendAsync
(request, CancellationToken.None);
1426
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
1436
var response2 = await client.
SendAsync
(request2, CancellationToken.None);
1493
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
1504
var response2 = await client.
SendAsync
(request2, CancellationToken.None);
1550
await client.
SendAsync
(request1, CancellationToken.None);
1564
var response2 = await client.
SendAsync
(request2, CancellationToken.None);
1607
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
1667
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
1723
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
1780
var responseTask1 = client.
SendAsync
(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/1"), CancellationToken.None);
1830
var response3 = await client.
SendAsync
(CreateHttp3Request(HttpMethod.Get, $"https://127.0.0.1:{port}/3"), CancellationToken.None);
1889
var responseTask = client.
SendAsync
(request1, CancellationToken.None);
1966
var response1 = await client.
SendAsync
(request1, CancellationToken.None);
2044
var responseTask = client.
SendAsync
(request, CancellationToken.None);
2144
var responseTask = client.
SendAsync
(request, CancellationToken.None);
2196
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
Http3\Http3TlsTests.cs (7)
61
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
107
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
149
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
198
var sendTask = client.
SendAsync
(request, CancellationToken.None);
248
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
327
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
492
var response = await client.
SendAsync
(request, CancellationToken.None).DefaultTimeout();
Microsoft.AspNetCore.TestHost.Tests (5)
ClientHandlerTests.cs (5)
221
var response = await invoker.
SendAsync
(message, CancellationToken.None);
316
var responseTask = invoker.
SendAsync
(message, CancellationToken.None);
363
HttpResponseMessage response = await invoker.
SendAsync
(message, CancellationToken.None);
366
response = await invoker.
SendAsync
(message, CancellationToken.None);
502
responseTask = invoker.
SendAsync
(message, CancellationToken.None);
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
142
var response = await invoke.
SendAsync
(new HttpRequestMessage(), CancellationToken.None);
194
var response = await invoke.
SendAsync
(new HttpRequestMessage(), CancellationToken.None);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\ResilienceHandlerTest.cs (1)
171
return invoker.
SendAsync
(request, cancellationToken);
System.Net.Http (4)
System\Net\Http\HttpClient.cs (4)
188
response = await base.
SendAsync
(request, cts.Token).ConfigureAwait(false);
263
response = await base.
SendAsync
(request, cts.Token).ConfigureAwait(false);
341
response = await base.
SendAsync
(request, cts.Token).ConfigureAwait(false);
530
response = await base.
SendAsync
(request, cts.Token).ConfigureAwait(false);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
129
: invoker.
SendAsync
(request, externalAndAbortCancellation.Token);