61 references to AddHttpClient
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
83builder.Services.AddHttpClient(KeycloakBackchannel); 162builder.Services.AddHttpClient(KeycloakBackchannel);
HeaderPropagationSample (2)
Startup.cs (2)
42.AddHttpClient("test") 46.AddHttpClient("another")
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (2)
31services.AddHttpClient("test").AddHeaderPropagation(); 81services.AddHttpClient("test").AddHeaderPropagation();
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (8)
HttpClientFactory.cs (8)
24.AddHttpClient(nameof(fileName)) 47.AddHttpClient(nameof(fileName)) 70.AddHttpClient(nameof(fileName)) 97.AddHttpClient(nameof(fileName)) 120.AddHttpClient(nameof(fileName)) 143.AddHttpClient(nameof(fileName)) 164.AddHttpClient(nameof(fileName)) 174.AddHttpClient(nameof(fileName))
Microsoft.Extensions.Http.Diagnostics.Tests (21)
Logging\AcceptanceTests.cs (12)
102.AddHttpClient("testClient").Services 136.AddHttpClient("namedClient1") 146.AddHttpClient("namedClient2") 409.AddHttpClient("test") 449.AddHttpClient(FirstClientName) 456.AddHttpClient(SecondClientName) 532.AddHttpClient("testClient3") 538.AddHttpClient("testClient4") 584.AddHttpClient("test") 606.AddHttpClient("test") 609.AddHttpClient("normal") 660.AddHttpClient(nameof(HttpClientLoggingHandler_LogsBodyDataUpToSpecifiedLimit))
Logging\HttpClientLoggingExtensionsTest.cs (9)
85.AddHttpClient("test1") 88.AddHttpClient("test2") 131.AddHttpClient("") 134.AddHttpClient("") 162.AddHttpClient("test") 206.AddHttpClient("test") 230.AddHttpClient("test") 338.AddHttpClient(ClientName) 362.AddHttpClient(ClientName)
Microsoft.Extensions.Http.Polly.Tests (1)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (1)
337serviceCollection.AddHttpClient("Service")
Microsoft.Extensions.Http.Resilience.PerformanceTests (5)
HttpClientFactory.cs (1)
44.AddHttpClient(StandardClient)
RetryBenchmark.cs (2)
39.AddHttpClient("v8") 58.AddHttpClient("v7")
StandardResilienceBenchmark.cs (2)
39.AddHttpClient("v8") 60.AddHttpClient("v7")
Microsoft.Extensions.Http.Resilience.Tests (20)
Hedging\HedgingTests.cs (1)
50var httpClient = _services.AddHttpClient(ClientId);
Hedging\StandardHedgingTests.cs (1)
310.AddHttpClient(ClientId)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (9)
29IHttpClientBuilder? builder = services.AddHttpClient("client"); 47IHttpClientBuilder? builder = services.AddHttpClient("client"); 68.AddHttpClient("client") 90IHttpClientBuilder? builder = services.AddHttpClient("client"); 120.AddHttpClient("client") 170IHttpClientBuilder? builder = services.AddHttpClient("client"); 205var builder = services.AddHttpClient("client"); 254var clientBuilder = services.AddHttpClient("client"); 279.AddHttpClient("my-client")
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (9)
31_builder = new ServiceCollection().AddHttpClient(BuilderName); 115var builder = new ServiceCollection().AddHttpClient("test"); 126var builder = new ServiceCollection().AddHttpClient("test"); 136var builder = new ServiceCollection().AddHttpClient("test"); 146var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 159.AddHttpClient("test") 182var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 211var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test"); 264var builder = new ServiceCollection().AddLogging().AddMetrics().AddHttpClient("test").AddStandardResilienceHandler();