775 references to SendAsync
Aspire.Dashboard.Tests (12)
Integration\OtlpCorsHttpServiceTests.cs (5)
36var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout(); 60var responseMessage1 = await httpClient.SendAsync(preflightRequest1).DefaultTimeout(); 74var responseMessage2 = await httpClient.SendAsync(preflightRequest2).DefaultTimeout(); 101var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout(); 129var responseMessage = await httpClient.SendAsync(preflightRequest).DefaultTimeout();
Integration\OtlpHttpServiceTests.cs (3)
145var responseMessage = await httpClient.SendAsync(requestMessage).DefaultTimeout(); 173var responseMessage = await httpClient.SendAsync(requestMessage).DefaultTimeout(); 264var responseMessage = await client.SendAsync(requestMessage).DefaultTimeout();
Integration\ResponseCompressionTests.cs (2)
28var response = await client.SendAsync(request).DefaultTimeout(); 50var response = await client.SendAsync(request).DefaultTimeout();
Integration\StartupTests.cs (2)
299var response = await httpClient.SendAsync(request).DefaultTimeout(); 400var responseMessage = await httpClient.SendAsync(request).DefaultTimeout();
AuthSamples.FunctionalTests (1)
HttpClientExtensions.cs (1)
60return client.SendAsync(submision);
Diagnostics.FunctionalTests (13)
DatabaseErrorPageSampleTest.cs (1)
28var response = await Client.SendAsync(request);
DeveloperExceptionPageSampleTest.cs (2)
29var response = await Client.SendAsync(request); 45var response = await Client.SendAsync(request);
ExceptionHandlerSampleTest.cs (1)
25var response = await Client.SendAsync(request);
MiddlewareAnalysisSampleTest.cs (1)
25var response = await Client.SendAsync(request);
ProblemDetailsExceptionHandlerSampleTest.cs (2)
30var response = await Client.SendAsync(request); 47var response = await Client.SendAsync(request);
StatusCodeSampleTest.cs (5)
30var response = await Client.SendAsync(request); 46var response = await Client.SendAsync(request); 64var response = await Client.SendAsync(request); 85var response = await Client.SendAsync(request); 102var response = await Client.SendAsync(request);
WelcomePageSampleTest.cs (1)
23var response = await Client.SendAsync(request);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
114using var response = await httpClient.SendAsync(request).ConfigureAwait(false);
HttpStress (6)
Program.cs (6)
124await ctx.HttpClient.SendAsync(req); 175using (HttpResponseMessage m = await ctx.HttpClient.SendAsync(req)) 204using (HttpResponseMessage m = await ctx.HttpClient.SendAsync(req)) 244using (HttpResponseMessage m = await ctx.HttpClient.SendAsync(req)) 326using (HttpResponseMessage m = await ctx.HttpClient.SendAsync(req)) 348using (HttpResponseMessage m = await ctx.HttpClient.SendAsync(req))
IIS.FunctionalTests (7)
Http3Tests.cs (1)
70var response1 = await client.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64var response = await deploymentResult.HttpClient.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
51var result = await client.SendAsync(requestMessage); 69var result = await client.SendAsync(requestMessage);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (3)
131var response = await _fixture.Client.SendAsync(request); 149var response = await _fixture.Client.SendAsync(request); 583var response = await _fixture.Client.SendAsync(request);
IISExpress.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64var response = await deploymentResult.HttpClient.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
51var result = await client.SendAsync(requestMessage); 69var result = await client.SendAsync(requestMessage);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (3)
131var response = await _fixture.Client.SendAsync(request); 149var response = await _fixture.Client.SendAsync(request); 583var response = await _fixture.Client.SendAsync(request);
InMemory.FunctionalTests (4)
EventSourceTests.cs (1)
195using var responseMessage = await httpClient.SendAsync(httpRequestMessage);
Http2\Http2EndToEndTests.cs (1)
72using var responseMessage = await httpClient.SendAsync(httpRequestMessage);
KestrelMetricsTests.cs (2)
731using var responseMessage = await httpClient.SendAsync(httpRequestMessage); 900await Assert.ThrowsAsync<HttpRequestException>(() => httpClient.SendAsync(httpRequestMessage));
Interop.FunctionalTests (6)
HttpClientHttp2InteropTests.cs (6)
844var requestTask = client.SendAsync(request); 889var requestTask = client.SendAsync(request); 1063var requestTask = client.SendAsync(request); 1172var requestTask = client.SendAsync(request); 1370var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.SendAsync(request).DefaultTimeout()); 1568var response = await client.SendAsync(request).DefaultTimeout();
Microsoft.AspNetCore.Authentication.Test (18)
CookieTests.cs (1)
1913Response = await server.CreateClient().SendAsync(request),
JwtBearerTests.cs (2)
909var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1259Response = await server.CreateClient().SendAsync(request),
JwtBearerTests_Handler.cs (2)
854var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty)); 1318Response = await server.CreateClient().SendAsync(request),
OpenIdConnect\TestServerExtensions.cs (1)
32Response = await server.CreateClient().SendAsync(request),
TestExtensions.cs (1)
28Response = await server.CreateClient().SendAsync(request),
TwitterTests.cs (3)
221var response = await client.SendAsync(request); 271var response = await client.SendAsync(request); 378var response = await client.SendAsync(request);
WsFederation\WsFederationTest.cs (4)
129response = await httpClient.SendAsync(request); 135response = await httpClient.SendAsync(request); 162response = await httpClient.SendAsync(request); 180response = await httpClient.SendAsync(request);
WsFederation\WsFederationTest_Handler.cs (4)
127response = await httpClient.SendAsync(request); 133response = await httpClient.SendAsync(request); 160response = await httpClient.SendAsync(request); 178response = await httpClient.SendAsync(request);
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
25Response = await server.CreateClient().SendAsync(request),
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
298using var response = await client.SendAsync(request).ConfigureAwait(false); 359using var response = await client.SendAsync(httpMessage).ConfigureAwait(false);
Microsoft.AspNetCore.Diagnostics.Tests (4)
DeveloperExceptionPageMiddlewareTest.cs (3)
66var response = await server.CreateClient().SendAsync(request); 119var response = await server.CreateClient().SendAsync(request); 178var response = await server.CreateClient().SendAsync(request);
ExceptionHandlerMiddlewareTest.cs (1)
72var response = await server.CreateClient().SendAsync(request);
Microsoft.AspNetCore.HeaderPropagation.Tests (18)
HeaderPropagationIntegrationTest.cs (4)
64var response = await client.SendAsync(request); 113var response = await client.SendAsync(request); 140var response = await client.SendAsync(request); 186var response = await client.SendAsync(request);
HeaderPropagationMessageHandlerTest.cs (14)
46await Client.SendAsync(new HttpRequestMessage()); 61await Client.SendAsync(new HttpRequestMessage()); 75await Client.SendAsync(new HttpRequestMessage() { Content = new StringContent("test") }); 89await Client.SendAsync(new HttpRequestMessage() { Content = new StringContent("test") }); 103await Client.SendAsync(new HttpRequestMessage() { Content = new StringContent("test") }); 118await Client.SendAsync(new HttpRequestMessage()); 132await Client.SendAsync(new HttpRequestMessage()); 145await Client.SendAsync(new HttpRequestMessage()); 161await Client.SendAsync(new HttpRequestMessage()); 180await Client.SendAsync(new HttpRequestMessage()); 201await Client.SendAsync(request); 217await Client.SendAsync(new HttpRequestMessage()); 233await Client.SendAsync(new HttpRequestMessage()); 252await Client.SendAsync(new HttpRequestMessage());
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\LongPollingTransport.cs (1)
235var response = await _httpClient.SendAsync(request).ConfigureAwait(false);
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1731var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseonly")); 1746var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_responseandrequest")); 1761var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/attr_restrictedheaders")); 1778var initialResponse = await client.SendAsync(request); 1804var initialResponse = await client.SendAsync(request); 1821var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseonly")); 1836var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_responseandrequest")); 1851var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/ext_restrictedheaders")); 1868var initialResponse = await client.SendAsync(request); 1894var initialResponse = await client.SendAsync(request); 1940var initialResponse = await client.SendAsync(request);
Microsoft.AspNetCore.HttpOverrides.Tests (6)
HttpMethodOverrideMiddlewareTest.cs (6)
41await server.CreateClient().SendAsync(req); 71await server.CreateClient().SendAsync(req); 101await server.CreateClient().SendAsync(req); 139await server.CreateClient().SendAsync(req); 176await server.CreateClient().SendAsync(req); 214await server.CreateClient().SendAsync(req);
Microsoft.AspNetCore.HttpsPolicy.Tests (19)
HstsMiddlewareTests.cs (8)
68var response = await client.SendAsync(request); 114var response = await client.SendAsync(request); 160var response = await client.SendAsync(request); 205var response = await client.SendAsync(request); 260var response = await client.SendAsync(request); 315var response = await client.SendAsync(request); 362var response = await client.SendAsync(request); 408var response = await client.SendAsync(request);
HttpsPolicyTests.cs (2)
67var response = await client.SendAsync(request); 75response = await client.SendAsync(request);
HttpsRedirectionMiddlewareTests.cs (9)
53var response = await client.SendAsync(request); 108var response = await client.SendAsync(request); 164var response = await client.SendAsync(request); 226var response = await client.SendAsync(request); 266var response = await client.SendAsync(request); 312var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => client.SendAsync(request)); 354var response = await client.SendAsync(request); 401var response = await client.SendAsync(request); 445var response = await client.SendAsync(request);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Extensions\HttpClientExtensions.cs (1)
60return client.SendAsync(submision);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
442Response = await server.CreateClient().SendAsync(request),
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
37var response = await client.SendAsync(request);
LocalizationTest.cs (1)
115var response = await client.SendAsync(request);
Microsoft.AspNetCore.Mvc.FunctionalTests (381)
AntiforgeryMiddlewareTest.cs (5)
50var result = await client.SendAsync(request); 91var result = await client.SendAsync(request); 134var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await client.SendAsync(request)); 166var result = await client.SendAsync(request); 198var result = await client.SendAsync(request);
AntiforgeryTests.cs (5)
79var response = await Client.SendAsync(request); 129var response = await Client.SendAsync(request); 158var response = await Client.SendAsync(request); 193var response = await Client.SendAsync(request); 206var response = await Client.SendAsync(request);
ApiBehaviorTest.cs (2)
109var response = await Client.SendAsync(requestMessage); 125var response = await Client.SendAsync(requestMessage);
ApiExplorerTest.cs (2)
420var response = await Client.SendAsync(request); 443var response = await Client.SendAsync(request);
ApplicationModelTest.cs (1)
130var response = await Client.SendAsync(request);
AsyncEnumerableTestBase.cs (1)
79var response = await Client.SendAsync(request);
AuthMiddlewareAndFilterTestBase.cs (20)
59response = await Client.SendAsync(request); 77response = await Client.SendAsync(request); 84response = await Client.SendAsync(request); 123response = await Client.SendAsync(request); 131var response = await Client.SendAsync(request); 138response = await Client.SendAsync(request); 146var response = await Client.SendAsync(request); 150response = await Client.SendAsync(request); 157response = await Client.SendAsync(request); 165var response = await Client.SendAsync(request); 172response = await Client.SendAsync(request); 180var response = await Client.SendAsync(request); 184response = await Client.SendAsync(request); 191response = await Client.SendAsync(request); 199var response = await Client.SendAsync(request); 206response = await Client.SendAsync(request); 211response = await Client.SendAsync(request); 219response = await Client.SendAsync(request); 254response = await Client.SendAsync(request); 261response = await Client.SendAsync(request);
AuthMiddlewareUsingRequireAuthTest.cs (2)
50response = await Client.SendAsync(request); 69response = await Client.SendAsync(request);
BasicTests.cs (3)
206var response = await Client.SendAsync(new HttpRequestMessage( 224var response = await Client.SendAsync(new HttpRequestMessage( 652var response = await Client.SendAsync(request);
ConsumesAttributeTestsBase.cs (8)
52var response = await Client.SendAsync(request); 69var response = await Client.SendAsync(request); 86var response = await Client.SendAsync(request); 105var response = await Client.SendAsync(request); 127var response = await Client.SendAsync(request); 151var response = await Client.SendAsync(request); 171var response = await Client.SendAsync(request); 194var response = await Client.SendAsync(request);
ContentNegotiationTest.cs (12)
113var response = await Client.SendAsync(request); 132var response = await Client.SendAsync(request); 157var response = await Client.SendAsync(request); 351var response = await Client.SendAsync(request); 371var response = await Client.SendAsync(request); 389var response = await Client.SendAsync(request); 409var response = await Client.SendAsync(request); 424var response = await Client.SendAsync(request); 439var response = await Client.SendAsync(request); 453var response = await Client.SendAsync(request); 493var response = await Client.SendAsync(request); 511var response = await Client.SendAsync(request);
ControllerFromServicesTests.cs (1)
39var response = await Client.SendAsync(request);
CorsTests.cs (1)
21var response = await Client.SendAsync(request);
CorsTestsBase.cs (15)
48var response = await Client.SendAsync(request); 67var response = await Client.SendAsync(request); 85var response = await Client.SendAsync(request); 103var response = await Client.SendAsync(request); 127var response = await Client.SendAsync(request); 163var response = await Client.SendAsync(request); 196var response = await Client.SendAsync(request); 228var response = await Client.SendAsync(request); 253var response = await Client.SendAsync(request); 281var response = await Client.SendAsync(request); 306var response = await Client.SendAsync(request); 338var response = await Client.SendAsync(request); 377var response = await Client.SendAsync(request); 400var response = await Client.SendAsync(request); 420var response = await Client.SendAsync(request);
CustomValueProviderTest.cs (4)
46var response = await Client.SendAsync(request); 63var response = await Client.SendAsync(request); 80var response = await Client.SendAsync(request); 97var response = await Client.SendAsync(request);
DoNotRespectBrowserAcceptHeaderTests.cs (4)
47var response = await Client.SendAsync(request); 75var response = await Client.SendAsync(request); 104var response = await Client.SendAsync(request); 135var response = await Client.SendAsync(request);
FileResultTests.cs (31)
63var response = await Client.SendAsync(httpRequestMessage); 85var response = await Client.SendAsync(httpRequestMessage); 105var response = await Client.SendAsync(httpRequestMessage); 127var response = await Client.SendAsync(httpRequestMessage); 149var response = await Client.SendAsync(httpRequestMessage); 169var response = await Client.SendAsync(httpRequestMessage); 213var response = await Client.SendAsync(httpRequestMessage); 232var response = await Client.SendAsync(httpRequestMessage); 252var response = await Client.SendAsync(httpRequestMessage); 284var response = await Client.SendAsync(httpRequestMessage); 350var response = await Client.SendAsync(httpRequestMessage); 372var response = await Client.SendAsync(httpRequestMessage); 392var response = await Client.SendAsync(httpRequestMessage); 434var response = await Client.SendAsync(httpRequestMessage); 453var response = await Client.SendAsync(httpRequestMessage); 473var response = await Client.SendAsync(httpRequestMessage); 503var response = await Client.SendAsync(httpRequestMessage); 551var response = await Client.SendAsync(httpRequestMessage); 573var response = await Client.SendAsync(httpRequestMessage); 593var response = await Client.SendAsync(httpRequestMessage); 638var response = await Client.SendAsync(httpRequestMessage); 657var response = await Client.SendAsync(httpRequestMessage); 677var response = await Client.SendAsync(httpRequestMessage); 709var response = await Client.SendAsync(httpRequestMessage); 764var response = await Client.SendAsync(httpRequestMessage); 788var response = await Client.SendAsync(httpRequestMessage); 807var response = await Client.SendAsync(httpRequestMessage); 830var response = await Client.SendAsync(httpRequestMessage); 854var response = await Client.SendAsync(httpRequestMessage); 877var response = await Client.SendAsync(httpRequestMessage); 913var response = await Client.SendAsync(httpRequestMessage);
FiltersTest.cs (1)
93var response = await Client.SendAsync(request);
FormFileUploadTest.cs (2)
43var response = await Client.SendAsync(request); 71var response = await Client.SendAsync(request);
GlobalAuthorizationFilterTestBase.cs (1)
76response = await Client.SendAsync(request);
HtmlGenerationTest.cs (12)
336var response = await Client.SendAsync(request); 353var response = await Client.SendAsync(request); 389var response = await Client.SendAsync(request); 431var response1 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 433var response2 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 447var response3 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 449var response4 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 462var response5 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 464var response6 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 506var response2 = await (await Client.SendAsync(request)).Content.ReadAsStringAsync(); 619(await Client.SendAsync(requestMessage)).EnsureSuccessStatusCode(); 793var response = await Client.SendAsync(request);
InputObjectValidationTests.cs (4)
274var response = await Client.SendAsync(requestMessage); 295var response = await Client.SendAsync(requestMessage); 324var response = await Client.SendAsync(requestMessage); 356var response = await Client.SendAsync(requestMessage);
JsonInputFormatterTestBase.cs (1)
228var response = await Client.SendAsync(request);
JsonOutputFormatterTestBase.cs (1)
56var response = await Client.SendAsync(request);
JsonPatchInputFormatterTest.cs (7)
41var response = await Client.SendAsync(request); 61var response = await Client.SendAsync(request); 81var response = await Client.SendAsync(request); 102var response = await Client.SendAsync(request); 123var response = await Client.SendAsync(request); 143var response = await Client.SendAsync(request); 157var response = await Client.SendAsync(request);
JsonResultWithNewtonsoftJsonTest.cs (6)
46var response = await Client.SendAsync(request); 68var response = await Client.SendAsync(request); 86var response = await Client.SendAsync(request); 104var response = await Client.SendAsync(request); 121var response = await Client.SendAsync(request); 137var response = await Client.SendAsync(request);
JsonResultWithSystemTextJsonTest.cs (6)
46var response = await Client.SendAsync(request); 68var response = await Client.SendAsync(request); 86var response = await Client.SendAsync(request); 104var response = await Client.SendAsync(request); 121var response = await Client.SendAsync(request); 137var response = await Client.SendAsync(request);
KeyedServicesTests.cs (6)
37var okResponse = await Client.SendAsync(okRequest); 38var notokResponse = await Client.SendAsync(notokRequest); 54var response = await Client.SendAsync(request); 68var response = await Client.SendAsync(request); 82var response = await Client.SendAsync(request); 96var response = await Client.SendAsync(request);
NonNullableReferenceTypesTest.cs (2)
60response = await Client.SendAsync(request); 104response = await Client.SendAsync(request);
RazorPageModelTest.cs (6)
51var response = await Client.SendAsync(request); 76var response = await Client.SendAsync(request); 101var response = await Client.SendAsync(request); 127var response = await Client.SendAsync(request); 152var response = await Client.SendAsync(request); 177var response = await Client.SendAsync(request);
RazorPagesTest.cs (44)
106var response = await Client.SendAsync(postRequest); 137var response = await Client.SendAsync(postRequest); 219var response = await Client.SendAsync(postRequest); 250var response = await Client.SendAsync(postRequest); 275var routeResponse = await Client.SendAsync(routeRequest); 288var routeResponse = await Client.SendAsync(routeRequest); 304var response = await Client.SendAsync(request); 320var response = await Client.SendAsync(request); 336var response = await Client.SendAsync(request); 349var response = await Client.SendAsync(request); 365var response = await Client.SendAsync(request); 381var response = await Client.SendAsync(request); 397var response = await Client.SendAsync(request); 411var getResponse = await Client.SendAsync(getRequest); 421var response = await Client.SendAsync(postRequest); 440var response = await Client.SendAsync(request); 469var response = await Client.SendAsync(request); 485var response = await Client.SendAsync(request); 502var response = await Client.SendAsync(request); 512response = await Client.SendAsync(request); 527var response = await Client.SendAsync(request); 537response = await Client.SendAsync(request); 552var response = await Client.SendAsync(request); 560response = await Client.SendAsync(request); 574var getResponse = await Client.SendAsync(getRequest); 585var response = await Client.SendAsync(request); 598response = await Client.SendAsync(request); 682var response = await Client.SendAsync(request); 710var response = await Client.SendAsync(request); 737var response = await Client.SendAsync(request); 768var response = await Client.SendAsync(request); 797var response = await Client.SendAsync(request); 822var response = await Client.SendAsync(request); 853var response = await Client.SendAsync(request); 877var response = await Client.SendAsync(request); 893var response = await Client.SendAsync(request); 909var response = await Client.SendAsync(request); 926var response = await Client.SendAsync(request); 993var response = await Client.SendAsync(request); 1298var response = await Client.SendAsync(request); 1339var response = await Client.SendAsync(request); 1458var response = await Client.SendAsync(request); 1474var response = await Client.SendAsync(request); 1490var response = await Client.SendAsync(request);
RazorPagesWithBasePathTest.cs (8)
445var response = await Client.SendAsync(message); 474var response = await Client.SendAsync(message); 502var response = await Client.SendAsync(message); 619var response = await Client.SendAsync(request); 632var response = await Client.SendAsync(request); 646var response = await Client.SendAsync(request); 660var response = await Client.SendAsync(request); 714response = await Client.SendAsync(request);
ReadFromDisconnectedClientTest.cs (2)
45var response = await Client.SendAsync(request); 62var response = await Client.SendAsync(request);
RequestServicesTestBase.cs (4)
57var response = await Client.SendAsync(request); 79var response = await Client.SendAsync(request); 99var response1 = await Client.SendAsync(request1); 108var response2 = await Client.SendAsync(request2);
RequestSizeLimitTest.cs (1)
87var response = await Client.SendAsync(request);
RespectBrowserAcceptHeaderTests.cs (2)
47var response = await Client.SendAsync(request); 66var response = await Client.SendAsync(request);
RoutingAcrossPipelineBranchesTest.cs (12)
47var subdirResponse = await client.SendAsync(subdirRequest); 50var commonResponse = await client.SendAsync(commonRequest); 53var defaultResponse = await client.SendAsync(defaultRequest); 82var subdirResponse = await client.SendAsync(subdirRequest); 85var commonResponse = await client.SendAsync(commonRequest); 88var defaultResponse = await client.SendAsync(defaultRequest); 115var subdirResponse = await client.SendAsync(subdirRequest); 118var defaultResponse = await client.SendAsync(defaultRequest); 145var commonResponse = await client.SendAsync(commonRequest); 147var subdirResponse = await client.SendAsync(subdirRequest); 149var defaultResponse = await client.SendAsync(defaultRequest); 166var response = await client.SendAsync(request);
RoutingDynamicOrderTest.cs (6)
47var response = await client.SendAsync(request); 69var response = await client.SendAsync(request); 92var response = await client.SendAsync(request); 114var response = await client.SendAsync(request); 136var response = await client.SendAsync(request); 158var response = await client.SendAsync(request);
RoutingDynamicTest.cs (7)
43var response = await Client.SendAsync(request); 58var response = await Client.SendAsync(request); 73var response = await Client.SendAsync(request); 89var response = await Client.SendAsync(request); 103var response = await Client.SendAsync(request); 119var response = await Client.SendAsync(request); 135var response = await Client.SendAsync(request);
RoutingFallbackTest.cs (7)
44var response = await Client.SendAsync(request); 59var response = await Client.SendAsync(request); 75var response = await Client.SendAsync(request); 91var response = await Client.SendAsync(request); 107var response = await Client.SendAsync(request); 123var response = await Client.SendAsync(request); 142var response = await Client.SendAsync(request);
RoutingTests.cs (1)
36var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url));
RoutingTestsBase.cs (18)
404var response = await Client.SendAsync(request); 457var response = await Client.SendAsync(request); 496var response = await Client.SendAsync(new HttpRequestMessage(HttpMethod.Post, url)); 522var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod("POST"), url)); 538var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 609var response = await Client.SendAsync(new HttpRequestMessage(new HttpMethod(method), url)); 706var response = await Client.SendAsync(message); 731var response = await Client.SendAsync(message); 751var response = await Client.SendAsync(message); 774var response = await Client.SendAsync(message); 796var response = await Client.SendAsync(message); 821var response = await Client.SendAsync(message); 841var response = await Client.SendAsync(message); 864var response = await Client.SendAsync(message); 1067var response = await Client.SendAsync(message); 1489var response = await Client.SendAsync(request); 1524var response = await Client.SendAsync(request); 1541var response = await Client.SendAsync(request);
SerializableErrorTests.cs (4)
55var response = await Client.SendAsync(request); 79var response = await Client.SendAsync(request); 125var response = await Client.SendAsync(request); 166var response = await Client.SendAsync(request);
SimpleWithWebApplicationBuilderTests.cs (2)
237var response = await Client.SendAsync(request); 252var response = await Client.SendAsync(request);
TagHelperComponentTagHelperTest.cs (3)
43var response = await Client.SendAsync(request); 63var response = await Client.SendAsync(request); 83var response = await Client.SendAsync(request);
TagHelpersFromServicesTest.cs (1)
37var response = await Client.SendAsync(request);
TempDataInCookiesTest.cs (4)
89response = await Client.SendAsync(GetRequest("/TempData/GetLargeValueFromTempData", response)); 107response = await Client.SendAsync(GetRequest("/TempData/GetLargeValueFromTempData", response)); 139var redirectResponse = await Client.SendAsync(GetRequest("/TempData/GetTempDataAndRedirect", response)); 145response = await Client.SendAsync(GetRequest(redirectResponse.Headers.Location.ToString(), response));
TempDataInCookiesUsingCookieConsentTest.cs (4)
49response = await Client.SendAsync(GetPostRequest("/TempData/SetTempData", content, response)); 55response = await Client.SendAsync(GetRequest("/TempData/GetTempData", response)); 63response = await Client.SendAsync(GetRequest("/TempData/GetTempData", response)); 86response = await Client.SendAsync(GetRequest("/TempData/GetTempData", response));
TempDataPropertyTest.cs (6)
51var response = await Client.SendAsync(GetRequest(redirectResponse.Headers.Location.ToString(), redirectResponse)); 79var response = await Client.SendAsync(GetRequest(redirectResponse.Headers.Location.ToString(), redirectResponse)); 108response = await Client.SendAsync(GetRequest("TempDataProperty/TempDataKept", response)); 116response = await Client.SendAsync(GetRequest("TempDataProperty/ReadTempData", response)); 145response = await Client.SendAsync(GetRequest("TempDataProperty/ReadTempData", response)); 153response = await Client.SendAsync(GetRequest("TempDataProperty/ReadTempData", response));
TempDataTestBase.cs (9)
52response = await Client.SendAsync(GetRequest("/TempData/GetTempData", response)); 60response = await Client.SendAsync(GetRequest("/TempData/GetTempData", response)); 102var redirectResponse = await Client.SendAsync(GetRequest("/TempData/GetTempDataAndRedirect", response)); 108response = await Client.SendAsync(GetRequest(redirectResponse.Headers.Location.ToString(), response)); 133var peekResponse = await Client.SendAsync(GetRequest("/TempData/PeekTempData", response)); 141var getResponse = await Client.SendAsync(GetRequest("/TempData/GetTempData", response)); 173var response = await Client.SendAsync(GetRequest(redirectResponse.Headers.Location.ToString(), redirectResponse)); 212response = await Client.SendAsync(GetRequest("/TempData/GetTempDataSetInActionResult", response)); 220response = await Client.SendAsync(GetRequest("/TempData/GetTempDataSetInActionResult", response));
TestingInfrastructureTests.cs (7)
61var response = await Client.SendAsync(request); 84var response = await Client.SendAsync(request); 103var response = await client.SendAsync(request); 119var response = await client.SendAsync(request); 133var response = await client.SendAsync(request); 146var response = await client.SendAsync(request); 238var response = await client.SendAsync(request);
VersioningEndpointRoutingTests.cs (2)
37var response = await Client.SendAsync(message); 56var response = await Client.SendAsync(message);
VersioningTestsBase.cs (24)
48var response = await Client.SendAsync(message); 72var response = await Client.SendAsync(message); 92var response = await Client.SendAsync(message); 113var response = await Client.SendAsync(message); 132var response = await Client.SendAsync(message); 151var response = await Client.SendAsync(message); 178var response = await Client.SendAsync(message); 202var response = await Client.SendAsync(message); 227var response = await Client.SendAsync(message); 253var response = await Client.SendAsync(message); 272var response = await Client.SendAsync(message); 294var response = await Client.SendAsync(message); 315var response = await Client.SendAsync(message); 336var response = await Client.SendAsync(message); 358var response = await Client.SendAsync(message); 379var response = await Client.SendAsync(message); 398var response = await Client.SendAsync(message); 420var response = await Client.SendAsync(message); 441var response = await Client.SendAsync(message); 462var response = await Client.SendAsync(message); 486var response = await Client.SendAsync(message); 505var response = await Client.SendAsync(message); 524var response = await Client.SendAsync(message); 546var response = await Client.SendAsync(message);
ViewComponentFromServicesTests.cs (1)
38var response = await Client.SendAsync(request);
ViewEngineTests.cs (2)
168var response = await Client.SendAsync(request); 312var response = await Client.SendAsync(request);
XmlDataContractSerializerFormattersWrappingTest.cs (8)
48var response = await Client.SendAsync(request); 72var response = await Client.SendAsync(request); 96var response = await Client.SendAsync(request); 119var response = await Client.SendAsync(request); 142var response = await Client.SendAsync(request); 167var response = await Client.SendAsync(request); 190var response = await Client.SendAsync(request); 211var response = await Client.SendAsync(request);
XmlDataContractSerializerInputFormatterTest.cs (2)
63var response = await Client.SendAsync(request); 94var response = await Client.SendAsync(request);
XmlOutputFormatterTests.cs (10)
46var response = await Client.SendAsync(request); 68var response = await Client.SendAsync(request); 91var response = await Client.SendAsync(request); 112var response = await Client.SendAsync(request); 135var response = await Client.SendAsync(request); 156var response = await Client.SendAsync(request); 174var response = await Client.SendAsync(request); 194var response = await Client.SendAsync(request); 214var response = await Client.SendAsync(request); 235var response = await Client.SendAsync(request);
XmlSerializerFormattersWrappingTest.cs (8)
47var response = await Client.SendAsync(request); 68var response = await Client.SendAsync(request); 89var response = await Client.SendAsync(request); 109var response = await Client.SendAsync(request); 129var response = await Client.SendAsync(request); 151var response = await Client.SendAsync(request); 171var response = await Client.SendAsync(request); 189var response = await Client.SendAsync(request);
Microsoft.AspNetCore.OutputCaching.Tests (28)
OutputCacheTests.cs (28)
29var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 30var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 51var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 52var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "different")); 91var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 92var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 111var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 112var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 134var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 137var cachedResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 143var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 165var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 168var cachedResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 174var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 195var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "path")); 196var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "PATH")); 218var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "path")); 219var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "PATH")); 245var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 247var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 269var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 270var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 297var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 298var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 932var initialResponse = await client.SendAsync(TestUtils.CreateRequest("HEAD", "?contentLength=10")); 933var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest("HEAD", "?contentLength=10")); 962() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""))); 1003var resp = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""));
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
244await client.SendAsync(request); 315await client.SendAsync(request); 391await client.SendAsync(request); 493await client.SendAsync(request); 577await client.SendAsync(request); 734await client.SendAsync(request);
Microsoft.AspNetCore.ResponseCaching.Tests (22)
ResponseCachingTests.cs (22)
29var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 30var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 53var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 54var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "different")); 97var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 98var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 119var initialResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "")); 120var subsequentResponse = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "")); 144var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 147var cachedResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 153var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 177var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 180var cachedResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 186var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 209var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "path")); 210var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "PATH")); 233var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "?Expires=0")); 234var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 258var initialResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 259var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest(method, "")); 929var initialResponse = await client.SendAsync(TestUtils.CreateRequest("HEAD", "?contentLength=10")); 930var subsequentResponse = await client.SendAsync(TestUtils.CreateRequest("HEAD", "?contentLength=10"));
Microsoft.AspNetCore.ResponseCompression.Tests (9)
ResponseCompressionMiddlewareTest.cs (9)
180var response = await client.SendAsync(request); 338var response = await client.SendAsync(request); 477var response = await client.SendAsync(request); 540var response = await client.SendAsync(request); 603var response = await client.SendAsync(request); 1065var response = await client.SendAsync(request); 1115var response = await client.SendAsync(request); 1165var response = await client.SendAsync(request); 1284var response = await client.SendAsync(request);
Microsoft.AspNetCore.Routing.FunctionalTests (30)
EndpointRoutingSampleTest.cs (1)
39var response = await _client.SendAsync(message);
HostMatchingTests.cs (5)
36var response = await client.SendAsync(request); 54var response = await client.SendAsync(request); 72var response = await client.SendAsync(request); 90var response = await client.SendAsync(request); 108var response = await client.SendAsync(request);
MapFallbackTest.cs (5)
28var response = await _client.SendAsync(request); 45var response = await _client.SendAsync(request); 62var response = await _client.SendAsync(request); 79var response = await _client.SendAsync(request); 96var response = await _client.SendAsync(request);
MinimalFormTests.cs (14)
64var response = await client.SendAsync(request); 124var response = await client.SendAsync(request); 169var response = await client.SendAsync(request); 208var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await client.SendAsync(request)); 285var response = await client.SendAsync(request); 332var response = await client.SendAsync(request); 428var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await client.SendAsync(request)); 487var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await client.SendAsync(request)); 492var response = await client.SendAsync(request); 547var response = await client.SendAsync(request); 599var response = await client.SendAsync(request); 651var response = await client.SendAsync(request); 697var response = await client.SendAsync(request); 750var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Post, "/")
RouterSampleTest.cs (4)
37var response = await _client.SendAsync(message); 51var response = await _client.SendAsync(message); 65var response = await _client.SendAsync(message); 87var response = await _client.SendAsync(message);
WebHostBuilderExtensionsTest.cs (1)
97var response = await client.SendAsync(request);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Http3Tests.cs (1)
78var response1 = await client.SendAsync(request);
Listener\ResponseHeaderTests.cs (2)
351return await httpClient.SendAsync(request); 361return await _client.SendAsync(request);
OpaqueUpgradeTests.cs (1)
300var response = await client.SendAsync(request);
ResponseHeaderTests.cs (2)
174HttpResponseMessage response = await client.SendAsync(request); 201HttpResponseMessage response = await client.SendAsync(request);
Microsoft.AspNetCore.Server.IISIntegration.Tests (10)
IISMiddlewareTests.cs (10)
56var response = await server.CreateClient().SendAsync(req); 93var response = await server.CreateClient().SendAsync(req); 137var response = await server.CreateClient().SendAsync(request); 196var response = await server.CreateClient().SendAsync(request); 241var response = await server.CreateClient().SendAsync(request); 286var response = await server.CreateClient().SendAsync(request); 385var response = await server.CreateClient().SendAsync(request); 426await server.CreateClient().SendAsync(req); 483await server.CreateClient().SendAsync(req); 528await server.CreateClient().SendAsync(req);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
84var response = await client.SendAsync(request); 248var response1 = await client.SendAsync(request1).DefaultTimeout(); 262var response2 = await client.SendAsync(request2).DefaultTimeout(); 319var response1 = await client.SendAsync(request1).DefaultTimeout(); 332var response2 = await client.SendAsync(request2).DefaultTimeout(); 357var response1 = await client.SendAsync(request1).DefaultTimeout(); 369var response2 = await client.SendAsync(request2).DefaultTimeout();
Microsoft.AspNetCore.StaticAssets.Tests (30)
StaticAssetsIntegrationTests.cs (30)
440var response = await client.SendAsync(message); 653var resp = await client.SendAsync(req); 666var resp = await client.SendAsync(req); 677var resp = await client.SendAsync(req); 688var resp = await client.SendAsync(req); 715var resp2 = await client.SendAsync(req2); 728var resp2 = await client.SendAsync(req2); 741var resp2 = await client.SendAsync(req2); 761var response = await client.SendAsync( 784var resp1 = await client.SendAsync(req1); 789var resp2 = await client.SendAsync(req2); 800var resp1 = await client.SendAsync(req1); 806var resp2 = await client.SendAsync(req2); 812var resp3 = await client.SendAsync(req3); 823var resp1 = await client.SendAsync(req1); 832var resp2 = await client.SendAsync(req2); 837var resp3 = await client.SendAsync(req3); 842var resp4 = await client.SendAsync(req4); 869var res = await client.SendAsync(req); 882var res = await client.SendAsync(req); 900var res1 = await client.SendAsync( 905var res2 = await client.SendAsync(req2); 915var res1 = await client.SendAsync( 929var res2 = await client.SendAsync(req2); 941var res1 = await client.SendAsync( 946var res2 = await client.SendAsync(req2); 959var res = await client.SendAsync(req); 971var res = await client.SendAsync(req); 982var res1 = await client.SendAsync( 987var res2 = await client.SendAsync(req2);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
202var response = await client.SendAsync(request);
Microsoft.AspNetCore.StaticFiles.Tests (32)
CacheHeaderTests.cs (8)
52HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 66HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 78HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 90HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 118HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 132HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 146HttpResponseMessage resp2 = await server.CreateClient().SendAsync(req2); 167HttpResponseMessage response = await server.CreateClient().SendAsync(
RangeHeaderTests.cs (24)
26HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 47HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 68HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 85HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 102HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 119HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 138HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 155HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 174HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 193HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 212HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 220resp = await server.CreateClient().SendAsync(req); 239HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 247resp = await server.CreateClient().SendAsync(req); 272HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 293HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 314HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 328HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 346HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 361HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 381HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 403HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 424HttpResponseMessage resp = await server.CreateClient().SendAsync(req); 444HttpResponseMessage resp = await server.CreateClient().SendAsync(req);
Microsoft.AspNetCore.TestHost (3)
RequestBuilder.cs (3)
75return TestServer.CreateClient().SendAsync(_req); 85return TestServer.CreateClient().SendAsync(_req); 95return TestServer.CreateClient().SendAsync(_req);
Microsoft.AspNetCore.TestHost.Tests (4)
TestClientTests.cs (3)
955var message = await client.SendAsync(request); 982var message = await client.SendAsync(request); 1009var message = await client.SendAsync(request);
TestServerTests.cs (1)
793var response = await client.SendAsync(request);
Microsoft.AspNetCore.Testing.Tests (1)
FakesExtensionsTests.cs (1)
89using var response = await client.SendAsync(new HttpRequestMessage());
Microsoft.AspNetCore.WebSockets.Tests (6)
WebSocketCompressionMiddlewareTests.cs (3)
39var response = await client.SendAsync(request); 67var response = await client.SendAsync(request); 101var response = await client.SendAsync(request);
WebSocketMiddlewareTests.cs (3)
686var response = await client.SendAsync(request); 712var response = await client.SendAsync(request); 769var response = await client.SendAsync(request);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\CreateAzureDevOpsFeed.cs (1)
150using HttpResponseMessage createFeedResponse = await client.SendAsync(createFeedMessage);
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
35HttpResponseMessage response = await httpClient.SendAsync(getMessage);
Microsoft.DotNet.Helix.Sdk (8)
CheckAzurePipelinesTestResults.cs (4)
61using HttpResponseMessage res = await client.SendAsync(req); 115using HttpResponseMessage res = await client.SendAsync(req); 169using (HttpResponseMessage res = await client.SendAsync(req)) 213using (HttpResponseMessage res = await client.SendAsync(req))
CreateFailedTestsForFailedWorkItems.cs (1)
68using (HttpResponseMessage res = await client.SendAsync(req))
FindDotNetCliPackage.cs (1)
267response = await _client.SendAsync(req);
StartAzurePipelinesTestRun.cs (1)
53using (var res = await client.SendAsync(req))
StopAzurePipelinesTestRun.cs (1)
39using (var res = await client.SendAsync(req))
Microsoft.DotNet.VersionTools (4)
Automation\GitHubApi\GitHubClient.cs (3)
212using (HttpResponseMessage response = await _httpClient.SendAsync(request)) 376using (HttpResponseMessage response = await _httpClient.SendAsync(request)) 400using (HttpResponseMessage response = await _httpClient.SendAsync(request))
Automation\VstsApi\VstsAdapterClient.cs (1)
177using (HttpResponseMessage response = await _httpClient.SendAsync(request))
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Logging\AcceptanceTests.cs (4)
113_ = await httpClient.SendAsync(httpRequestMessage); 320_ = await httpClient.SendAsync(httpRequestMessage); 363using var _ = await httpClient.SendAsync(httpRequestMessage); 432using var _ = await httpClient.SendAsync(httpRequestMessage);
Microsoft.Extensions.Http.Polly.Tests (14)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (14)
67var response = await client.SendAsync(new HttpRequestMessage()); 102var response = await client.SendAsync(new HttpRequestMessage()); 108await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 140var response = await client.SendAsync(new HttpRequestMessage()); 146await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 181var response = await client.SendAsync(new HttpRequestMessage()); 225var response = await client.SendAsync(new HttpRequestMessage()); 231await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 278var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/")); 323var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/")); 367var response = await client.SendAsync(request); 376response = await client.SendAsync(request); 385response = await client.SendAsync(request); 437var response = await client.SendAsync(new HttpRequestMessage());
Microsoft.Extensions.ML (1)
ModelLoaders\UriModelLoader.cs (1)
110var resp = await client.SendAsync(headRequest);
Negotiate.Client (3)
Controllers\AuthTestController.cs (3)
117result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Unrestricted") { Version = GetProtocolVersion(protocol2) }); 150result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Unrestricted") { Version = GetProtocolVersion(protocol2) }); 183result = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "auth/Authorized") { Version = GetProtocolVersion(protocol2) });
ServerComparison.FunctionalTests (6)
ResponseCompressionTests.cs (2)
169var response = await client.SendAsync(request); 201var response = await client.SendAsync(request);
ResponseTests.cs (4)
134var response = await client.SendAsync(requestMessage); 179var response = await client.SendAsync(requestMessage); 204var response = await client.SendAsync(requestMessage); 229var response = await client.SendAsync(requestMessage);
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
68/// Note that this property has no effect on any of the <see cref="Send(HttpRequestMessage)" /> and <see cref="SendAsync(HttpRequestMessage)" /> overloads
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
139return await _httpClient.SendAsync(request); 251=> RetryHelper.RetryRequest(() => _httpClient.SendAsync(requestFactory()), logger: NullLogger.Instance); 266return _httpClient.SendAsync(request);
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
139return await _httpClient.SendAsync(request); 251=> RetryHelper.RetryRequest(() => _httpClient.SendAsync(requestFactory()), logger: NullLogger.Instance); 266return _httpClient.SendAsync(request);
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
139return await _httpClient.SendAsync(request); 251=> RetryHelper.RetryRequest(() => _httpClient.SendAsync(requestFactory()), logger: NullLogger.Instance); 266return _httpClient.SendAsync(request);
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
139return await _httpClient.SendAsync(request); 251=> RetryHelper.RetryRequest(() => _httpClient.SendAsync(requestFactory()), logger: NullLogger.Instance); 266return _httpClient.SendAsync(request);
Templates.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
139return await _httpClient.SendAsync(request); 251=> RetryHelper.RetryRequest(() => _httpClient.SendAsync(requestFactory()), logger: NullLogger.Instance); 266return _httpClient.SendAsync(request);