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