14 references to AddHttpClient
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationIntegrationTest.cs (1)
209var client = services.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
Microsoft.Extensions.Http.Polly.Tests (8)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (8)
46serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 81serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 119serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 160serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 199serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 257serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 302serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 416serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
HttpClientFactory.cs (4)
41.AddHttpClient(StandardClient, client => client.Timeout = Timeout.InfiniteTimeSpan) 47.AddHttpClient(EmptyClient, client => client.Timeout = Timeout.InfiniteTimeSpan) 50.AddHttpClient(SingleHandlerClient, client => client.Timeout = Timeout.InfiniteTimeSpan) 67var clientBuilder = services.AddHttpClient(clientType.ToString(), client => client.Timeout = Timeout.InfiniteTimeSpan);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
60serviceCollection.AddHttpClient("foo", c => c.BaseAddress = new("http://foo")).AddServiceDiscovery();