23 references to CreateHttpClient
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
41
using var client = app.
CreateHttpClient
("testcontainer", "http");
72
using var client = app.
CreateHttpClient
("testcontainer", "http");
183
using var client = app.
CreateHttpClient
("testcontainer", "http");
216
using var client = app.
CreateHttpClient
("testcontainer", "http");
443
using var client = app.
CreateHttpClient
("testcontainer", "http");
513
using var client = app.
CreateHttpClient
("testcontainer", "http");
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
90
var client = app.
CreateHttpClient
(adminBuilder.Resource.Name, "http");
165
var client = app.
CreateHttpClient
(pgWebBuilder.Resource.Name, "http");
Aspire.Hosting.Redis.Tests (6)
RedisFunctionalTests.cs (6)
81
var client = app.
CreateHttpClient
(commanderBuilder.Resource.Name, "http");
170
using var client1 = app1.
CreateHttpClient
($"{redis1.Resource.Name}-insight", "http");
207
using var client2 = app2.
CreateHttpClient
($"{redisInsightBuilder.Resource.Name}", "http");
259
var client = app.
CreateHttpClient
(redisInsightBuilder.Resource.Name, "http");
589
var httpClient = app.
CreateHttpClient
(redisInsightBuilder1.Resource.Name, "http");
632
var httpClient = app.
CreateHttpClient
(redisInsightBuilder2.Resource.Name, "http");
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (1)
202
Assert.Throws<InvalidOperationException>(() => app.
CreateHttpClient
("mywebapp1"));
TestingPublicApiTests.cs (2)
124
var action = () => app.
CreateHttpClient
(resourceName);
138
var action = () => distributedApplication.
CreateHttpClient
(resourceName);
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (4)
362
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
363
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
1004
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
1054
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
175
return app.
CreateHttpClient
(resourceName, endpointName);
214
using (var checkHttpClient = app.
CreateHttpClient
(project.Name))