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