59 writes to AppHostPath
Aspire.Cli.Tests (59)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
163AppHostPath = "/path/to/AppHost.csproj",
Backchannel\AppHostConnectionResolverTests.cs (1)
491AppHostPath = appHostPath,
Backchannel\OrphanedAppHostCollectorTests.cs (9)
29AppHostPath = "/tmp/AppHost.csproj", 48AppHostPath = "/tmp/AppHost.csproj", 68AppHostPath = "/tmp/AppHost.csproj", 88AppHostPath = "/tmp/AppHost.csproj", 108AppHostPath = "/tmp/AppHost.csproj", 129AppHostPath = "/tmp/AppHost.csproj", 157AppHostPath = "/tmp/AppHost.csproj", 185AppHostPath = "/tmp/AppHost.csproj", 381AppHostPath = "/tmp/AppHost.csproj",
Commands\AgentMcpCommandTests.cs (5)
141AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 209AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 284AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 399AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 481AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\AppHostLauncherTests.cs (1)
1232AppHostPath = AppHostFile.FullName,
Commands\DescribeCommandTests.cs (2)
945AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 969AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\ExportCommandTests.cs (3)
192AppHostPath = Path.Combine("C:", "other", "OtherAppHost", "OtherAppHost.csproj"), 215AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TargetAppHost", "TargetAppHost.csproj"), 882AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\LogsCommandTests.cs (5)
728AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 818AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 985AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1548AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1626AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\PsCommandTests.cs (14)
126AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 142AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App2", "App2.AppHost.csproj"), 233AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 273AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 317AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 361AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 440AppHostPath = appHostPath, 501AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 540AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 604AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 648AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 688AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 735AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 817AppHostPath = appHostPath,
Commands\ResourceCommandTests.cs (2)
211AppHostPath = appHostProjectFile.FullName, 1216AppHostPath = "/app/AppHost.csproj",
Commands\StopCommandTests.cs (1)
1290AppHostPath = appHostPath,
Commands\TelemetryTestHelper.cs (1)
78AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\TelemetryTracesCommandTests.cs (1)
87AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Commands\TerminalCommandTests.cs (1)
626AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
Mcp\AppHostConnectionSelectionLogicTests.cs (1)
74appHostInfo: new AppHostInformation { AppHostPath = appHostPath, ProcessId = processId, CliProcessId = null },
Mcp\ListAppHostsToolTests.cs (4)
50AppHostPath = appHostPath, 82AppHostPath = appHostPath, 114AppHostPath = inScopeAppHostPath, 125AppHostPath = outOfScopeAppHostPath,
Processes\ProcessTreeGracefulShutdownServiceTests.cs (6)
115AppHostPath = "apphost.cs", 133AppHostPath = "apphost.cs", 175AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 220AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 259AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 297AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"),
Projects\RunningInstanceManagerTests.cs (1)
140AppHostPath = "/path/to/AppHost.csproj",
41 references to AppHostPath
aspire (37)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
539AppHostPath = legacyInfo.AppHostPath,
Backchannel\AppHostConnectionHelper.cs (7)
48c.AppHostInfo?.AppHostPath != null && 49string.Equals(c.AppHostInfo.AppHostPath, selectedPath, StringComparison.OrdinalIgnoreCase)); 67logger.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A"); 74.Where(c => c.AppHostInfo?.AppHostPath != null) 75.Select(c => c.AppHostInfo!.AppHostPath) 87.OrderBy(c => c.AppHostInfo?.AppHostPath ?? string.Empty, StringComparer.OrdinalIgnoreCase) 93fallback?.AppHostInfo?.AppHostPath ?? "N/A");
Backchannel\AppHostConnectionResolver.cs (2)
290if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath) 335var appHostPath = c.AppHostInfo?.AppHostPath ?? "Unknown";
Backchannel\AuxiliaryBackchannelMonitor.cs (5)
158c.AppHostInfo?.AppHostPath != null && 159string.Equals(Path.GetFullPath(c.AppHostInfo.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase)); 189.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName)) 508connection.IsInScope = IsAppHostInScope(connection.AppHostInfo?.AppHostPath); 544connection.AppHostInfo?.AppHostPath ?? "N/A",
Backchannel\IAuxiliaryBackchannelMonitor.cs (1)
37string? ResolvedAppHostPath => SelectedConnection?.AppHostInfo?.AppHostPath;
Backchannel\OrphanedAppHostCollector.cs (2)
68appHostInfo?.AppHostPath, 76appHostInfo?.AppHostPath,
Commands\PsCommand.cs (3)
340var appHostPath = info.AppHostPath; 366_logger.LogDebug(ex, "Failed to get AppHost SDK version for {AppHostPath}", info.AppHostPath); 378_logger.LogDebug(ex, "Failed to get dashboard URL for {AppHostPath}", info.AppHostPath);
Commands\ResourceCommand.cs (1)
713.Where(connection => IsMatchingAppHostPath(connection.AppHostInfo?.AppHostPath, targetPath))
Commands\StopCommand.cs (7)
494var appHostPath = connection.AppHostInfo?.AppHostPath ?? "Unknown"; 540if (string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath)) 545var appHostPath = connection.AppHostInfo.AppHostPath; 553return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 555: connection.AppHostInfo.AppHostPath; 560return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 562: new FileInfo(connection.AppHostInfo.AppHostPath);
Mcp\McpResourceToolRefreshService.cs (1)
88selectedAppHostPath = connection.AppHostInfo?.AppHostPath;
Mcp\Tools\ListAppHostsTool.cs (2)
50c.AppHostInfo?.AppHostPath ?? "Unknown", 58c.AppHostInfo?.AppHostPath ?? "Unknown",
Mcp\Tools\ListIntegrationsTool.cs (1)
157var appHostPath = inScopeConnections[0].AppHostInfo?.AppHostPath;
Mcp\Tools\SelectAppHostTool.cs (4)
73if (c.AppHostInfo?.AppHostPath is null) 77var candidatePath = Path.GetFullPath(c.AppHostInfo.AppHostPath); 85.Where(c => c.AppHostInfo?.AppHostPath != null) 86.Select(c => c.AppHostInfo!.AppHostPath)
Aspire.Cli.Tests (4)
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
131AppHostPath = AppHostInfo.AppHostPath,
TestServices\TestAuxiliaryBackchannelMonitor.cs (3)
73c.AppHostInfo?.AppHostPath != null && 74string.Equals(Path.GetFullPath(c.AppHostInfo.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase)); 101.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))