15 references to CreateClient
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
493return services.BuildServiceProvider().GetRequiredService<IHttpClientFactory>().CreateClient();
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
27var client = clientFactory.CreateClient();
Aspire.Hosting.Testing.Tests (1)
DistributedApplicationHttpClientExtensionsForTests.cs (1)
14var client = s_httpClientFactory.Value.CreateClient();
Aspire.Hosting.Tests (1)
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (1)
14var client = s_httpClientFactory.Value.CreateClient();
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
202var httpClient = httpClientFactory.CreateClient();
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
493return services.BuildServiceProvider().GetRequiredService<IHttpClientFactory>().CreateClient();
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
66using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient();
Logging\AcceptanceTests.cs (4)
39using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient(); 70using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient(); 307using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient(); 354using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient();
Logging\HttpClientLoggingExtensionsTest.cs (3)
307using var httpClient = provider.GetRequiredService<IHttpClientFactory>().CreateClient(); 390using var httpClient = provider.GetRequiredService<IHttpClientFactory>().CreateClient(); 403using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient();
Stress.AppHost (1)
ResourceBuilderExtensions.cs (1)
62var httpClient = context.ServiceProvider.GetRequiredService<IHttpClientFactory>().CreateClient();