27 references to CreateHttpClient
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
41
using var client = app.
CreateHttpClient
("testcontainer", "http");
73
using var client = app.
CreateHttpClient
("testcontainer", "http");
105
using var client = app.
CreateHttpClient
("testcontainer", "http");
138
using var client = app.
CreateHttpClient
("testcontainer", "http");
365
using var client = app.
CreateHttpClient
("testcontainer", "http");
435
using var client = app.
CreateHttpClient
("testcontainer", "http");
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
92
var client = app.
CreateHttpClient
(adminBuilder.Resource.Name, "http");
169
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");
169
using var client1 = app1.
CreateHttpClient
($"{redis1.Resource.Name}-insight", "http");
206
using var client2 = app2.
CreateHttpClient
($"{redisInsightBuilder.Resource.Name}", "http");
258
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 (2)
TestingBuilderTests.cs (2)
176
Assert.Throws<InvalidOperationException>(() => app.
CreateHttpClient
("mywebapp1"));
213
var httpClient = app.
CreateHttpClient
("mywebapp1", "https");
Aspire.Hosting.Tests (9)
DistributedApplicationTests.cs (3)
197
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
198
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
812
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
SlimTestProgramTests.cs (3)
34
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
37
using var clientB = app.
CreateHttpClient
(testProgram.ServiceBBuilder.Resource.Name, "http");
40
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
TestProgramFixture.cs (3)
69
using var clientA = App.
CreateHttpClient
(TestProgram.ServiceABuilder.Resource.Name, "http");
73
using var clientB = App.
CreateHttpClient
(TestProgram.ServiceBBuilder.Resource.Name, "http");
77
using var clientC = App.
CreateHttpClient
(TestProgram.ServiceCBuilder.Resource.Name, "http");
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
179
return app.
CreateHttpClient
(resourceName, endpointName);
218
using (var checkHttpClient = app.
CreateHttpClient
(project.Name))