26 references to CreateClient
aspire (6)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
175var httpClient = httpClientFactory.CreateClient();
Commands\TelemetryCommandHelpers.cs (3)
313var client = factory.CreateClient(); 377using var probeClient = httpClientFactory.CreateClient(); 441using var client = httpClientFactory.CreateClient();
Profiling\ProfileCaptureService.cs (2)
286using var client = _httpClientFactory.CreateClient(); 447using var client = _httpClientFactory.CreateClient();
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
543return services.BuildServiceProvider().GetRequiredService<IHttpClientFactory>().CreateClient();
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1922var httpClient = httpClientFactory?.CreateClient() ?? new HttpClient();
Aspire.Hosting.Azure.Sandboxes (1)
AzureSandboxContainerDeployment.cs (1)
549return new AzureDevComputeClient(httpClientFactory.CreateClient(), tokenCredentialProvider.TokenCredential, context.Logger);
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
60? _httpClientFactory.CreateClient()
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
688var client = clientFactory.CreateClient();
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
155var client = clientFactory.CreateClient();
Aspire.Hosting.Testing.Tests (2)
DistributedApplicationHttpClientExtensionsForTests.cs (2)
19client = factory.CreateClient(); 23client = s_httpClientFactory.Value.CreateClient();
Aspire.Hosting.Tests (2)
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (2)
19client = factory.CreateClient(); 23client = s_httpClientFactory.Value.CreateClient();
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
202var httpClient = httpClientFactory.CreateClient();
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
543return 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)
524using var httpClient = provider.GetRequiredService<IHttpClientFactory>().CreateClient(); 607using var httpClient = provider.GetRequiredService<IHttpClientFactory>().CreateClient(); 646using var httpClient = sp.GetRequiredService<IHttpClientFactory>().CreateClient();