2 instantiations of DcpApiClient
Aspire.Hosting.Native.Core.Tests (1)
TestServices\DcpCleanupTestHandler.cs (1)
26return new DcpApiClient(options, new HttpClient(this) { BaseAddress = new Uri("http://localhost") });
Aspire.Hosting.Native.Server (1)
NativeServerHostedService.cs (1)
90var dcp = new DcpApiClient(options, loggerFactory.CreateLogger<DcpApiClient>());
29 references to DcpApiClient
Aspire.Hosting.Native.Core.Tests (20)
DcpJsonTests.cs (1)
37await using var client = handler.CreateClient(new());
DcpResponseTests.cs (6)
42await using var client = handler.CreateClient(new()); 55await using var client = handler.CreateClient(new()); 83await using var client = handler.CreateClient(new()); 92await using var client = handler.CreateClient(new()); 102await using var client = handler.CreateClient(new()); 115await using var client = handler.CreateClient(new());
DcpWorkloadCleanupTests.cs (10)
22await using var client = handler.CreateClient(new()); 38await using var client = handler.CreateClient(new()); 65await using var client = handler.CreateClient(options); 96await using var client = handler.CreateClient(new()); 116await using var client = handler.CreateClient(new()); 145await using var client = handler.CreateClient(options); 177await using var client = handler.CreateClient(options); 202await using var client = handler.CreateClient(options); 231await using var client = handler.CreateClient(options); 269await using var client = handler.CreateClient(options);
NativeProviderLifecycleTests.cs (1)
26await using var dcp = handler.CreateClient(options);
NativeTimeProviderTests.cs (1)
272await using var client = handler.CreateClient(options);
TestServices\DcpCleanupTestHandler.cs (1)
24public DcpApiClient CreateClient(NativeServerOptions options)
Aspire.Hosting.Native.Server (9)
Dashboard\DcpDashboard.cs (2)
24public async Task StartAsync(DcpApiClient client, string dashboardPath, Uri resourceService, 97public async Task StopAsync(DcpApiClient client, CancellationToken cancellationToken)
Dcp\DcpWorkloadExecutor.cs (5)
14internal sealed class DcpWorkloadExecutor(DcpApiClient client, Task startup, NativeServerOptions options, ILogger logger) : 17public DcpWorkloadExecutor(DcpApiClient client, Task startup, NativeServerOptions options) 22public DcpWorkloadExecutor(DcpApiClient client) : this(client, Task.CompletedTask, new()) 26public DcpWorkloadExecutor(DcpApiClient client, Task startup) : this(client, startup, new()) 243DcpApiClient client, DcpResourceCollection collection, string name, string[] services,
NativeServerHostedService.cs (2)
90var dcp = new DcpApiClient(options, loggerFactory.CreateLogger<DcpApiClient>());