14 references to AddHttpClient
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationIntegrationTest.cs (1)
209
var client = services.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
Microsoft.Extensions.Http.Polly.Tests (8)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (8)
46
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
81
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
119
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
160
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
199
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
257
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
302
serviceCollection.
AddHttpClient
("example.com", c => c.BaseAddress = new Uri("http://example.com"))
416
serviceCollection.
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)
67
var clientBuilder = services.
AddHttpClient
(clientType.ToString(), client => client.Timeout = Timeout.InfiniteTimeSpan);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
60
serviceCollection.
AddHttpClient
("foo", c => c.BaseAddress = new("http://foo")).AddServiceDiscovery();