31 references to LayoutComponent
aspire (14)
Commands\DcpWorkloadCleanupService.cs (1)
27
layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Layout\LayoutConfiguration.cs (6)
55
public string? GetComponentPath(
LayoutComponent
component)
64
LayoutComponent
.Cli => Components.Cli,
65
LayoutComponent
.Dcp => Components.Dcp,
66
LayoutComponent
.Managed => Components.Managed,
76
public string? GetDcpPath() => GetComponentPath(
LayoutComponent
.Dcp);
84
var managedDir = GetComponentPath(
LayoutComponent
.Managed);
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),
344
var dcpPath = layout.GetComponentPath(
LayoutComponent
.Dcp);
Processes\DcpExecutableResolver.cs (1)
29
layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Utils\EnvironmentChecker\DcpConnectionHealthCheck.cs (1)
32
var dcpDirectory = layoutDiscovery.GetComponentPath(
LayoutComponent
.Dcp, executionContext.WorkingDirectory.FullName);
Aspire.Cli.Tests (17)
BundleServiceIntegrationTests.cs (3)
650
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
655
LayoutComponent
.Managed => Path.Combine(bundleDir, BundleDiscovery.ManagedDirectoryName,
657
LayoutComponent
.Dcp => Path.Combine(bundleDir, BundleDiscovery.DcpDirectoryName),
Commands\AppHostLauncherTests.cs (1)
1584
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => null;
Commands\DashboardRunCommandTests.cs (1)
671
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => layout.GetComponentPath(component);
DotNet\ProcessExecutionDetachedTests.cs (1)
522
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
NuGet\BundleNuGetServiceTests.cs (1)
430
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => layout.GetComponentPath(component);
Processes\ProcessTreeGracefulShutdownServiceTests.cs (2)
403
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null)
405
return component ==
LayoutComponent
.Dcp ? dcpDirectory : null;
Projects\PrebuiltAppHostServerTests.cs (1)
3032
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => layout.GetComponentPath(component);
Utils\CliTestHelper.cs (4)
752
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) => null;
760
private readonly Dictionary<
LayoutComponent
, string> _componentPaths = [];
767
public FixedLayoutDiscovery(
LayoutComponent
component, string componentPath)
774
public string? GetComponentPath(
LayoutComponent
component, string? projectDirectory = null) =>
Utils\DcpConnectionHealthCheckTests.cs (3)
47
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),
118
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),
147
new FixedLayoutDiscovery(
LayoutComponent
.Dcp, dcpDirectory.FullName),