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