28 references to CreateHttpClient
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
41using var client = app.CreateHttpClient("testcontainer", "http"); 72using var client = app.CreateHttpClient("testcontainer", "http"); 104using var client = app.CreateHttpClient("testcontainer", "http"); 137using var client = app.CreateHttpClient("testcontainer", "http"); 364using var client = app.CreateHttpClient("testcontainer", "http"); 434using 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)
82var client = app.CreateHttpClient(commanderBuilder.Resource.Name, "http"); 171using var client1 = app1.CreateHttpClient($"{redis1.Resource.Name}-insight", "http"); 208using var client2 = app2.CreateHttpClient($"{redisInsightBuilder.Resource.Name}", "http"); 261var client = app.CreateHttpClient(redisInsightBuilder.Resource.Name, "http"); 593var httpClient = app.CreateHttpClient(redisInsightBuilder1.Resource.Name, "http"); 636var 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 (10)
DistributedApplicationTests.cs (4)
245using var clientA = app.CreateHttpClient(testProgram.ServiceABuilder.Resource.Name, "http"); 246using var clientC = app.CreateHttpClient(testProgram.ServiceCBuilder.Resource.Name, "http"); 872using var clientA = app.CreateHttpClient(servicea.Resource.Name, "http"); 923using 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))