47 references to LayoutComponent
aspire (16)
Commands\DcpWorkloadCleanupService.cs (1)
27
layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Layout\LayoutConfiguration.cs (8)
58
public string? GetComponentPath(
LayoutComponent
component)
67
LayoutComponent
.Cli => Components.Cli,
68
LayoutComponent
.Dcp => Components.Dcp,
69
LayoutComponent
.Dashboard => Components.Dashboard,
70
LayoutComponent
.Managed => Components.Managed,
80
public string? GetDcpPath() => GetComponentPath(
LayoutComponent
.Dcp);
88
var managedDir = GetComponentPath(
LayoutComponent
.Managed);
103
var dashboardDir = GetComponentPath(
LayoutComponent
.Dashboard);
Layout\LayoutDiscovery.cs (5)
26
string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null);
117
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
122
LayoutComponent
.Dcp => _environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar),
123
LayoutComponent
.Managed => _environment.GetEnvironmentVariable(BundleDiscovery.ManagedPathEnvVar),
361
var dcpPath = layout.GetComponentPath(
LayoutComponent
.Dcp);
Processes\DcpExecutableResolver.cs (1)
29
layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
37
var dcpDirectory = layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Aspire.Cli.Tests (31)
BundleServiceIntegrationTests.cs (4)
813
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
818
LayoutComponent
.Managed => Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName,
820
LayoutComponent
.Dashboard => Path.Combine(bundleDir, BundleDiscovery.DashboardDirectoryName),
821
LayoutComponent
.Dcp => Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName),
Commands\AppHostLauncherTests.cs (1)
1752
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => null;
Commands\DashboardRunCommandTests.cs (1)
735
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => layout.GetComponentPath(component);
DotNet\ProcessExecutionDetachedTests.cs (1)
522
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
Layout\LayoutConfigurationTests.cs (12)
14
Assert.Equal(0, (int)
LayoutComponent
.Cli);
15
Assert.Equal(1, (int)
LayoutComponent
.Dcp);
16
Assert.Equal(2, (int)
LayoutComponent
.Managed);
17
Assert.Equal(3, (int)
LayoutComponent
.Dashboard);
37
[InlineData(true, true, true,
LayoutComponent
.Dashboard)]
38
[InlineData(true, true, false,
LayoutComponent
.Dashboard)]
39
[InlineData(true, false, true,
LayoutComponent
.Managed)]
41
[InlineData(false, true, true,
LayoutComponent
.Managed)]
43
[InlineData(false, false, true,
LayoutComponent
.Managed)]
45
public void GetDashboardPath_SelectsCompatibleExistingExecutable(bool supportsNativeDashboard, bool nativeExists, bool managedExists,
LayoutComponent
? expectedComponent)
64
LayoutComponent
.Dashboard => dashboardPath,
65
LayoutComponent
.Managed => managedPath,
Processes\ProcessTreeGracefulShutdownServiceTests.cs (2)
403
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
405
return component ==
LayoutComponent
.Dcp ? dcpDirectory : null;
Projects\PrebuiltAppHostServerTests.cs (2)
2938
var dashboardDirectory = Assert.IsType<string>(layout.GetComponentPath(
LayoutComponent
.Dashboard));
3049
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => layout.GetComponentPath(component);
Utils\CliTestHelper.cs (4)
761
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => null;
769
private readonly Dictionary<
LayoutComponent
, string> _componentPaths = [];
776
public FixedLayoutDiscovery(
LayoutComponent
component, string componentPath)
783
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) =>
Utils\DcpConnectionHealthCheckTests.cs (4)
48
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),
113
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, discoveredDcpDirectory.FullName),
185
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),
215
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),