96 writes to AppHostPath
aspire (1)
Commands\StopCommand.TrayProtocol.cs (1)
96AppHostPath = appHostFile.FullName,
Aspire.Cli.Tests (95)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (1)
204AppHostPath = "/path/to/AppHost.csproj",
Backchannel\AppHostConnectionResolverTests.cs (1)
534AppHostPath = appHostPath,
Backchannel\AuxiliaryBackchannelMonitorTests.cs (2)
126AppHostPath = actualPath, 221AppHostPath = actualPath,
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",
Backchannel\TrayWatchStreamTests.cs (1)
1004AppHostInfo = new AppHostInformation { AppHostPath = path, ProcessId = pid },
Commands\AgentMcpCommandTests.cs (19)
172AppHostPath = appHostPath, 232AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 296AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "AnnotatedAppHost", "AnnotatedAppHost.csproj"), 373AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 506AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 586AppHostPath = appHostPath, 654AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "UnrelatedAppHost", "UnrelatedAppHost.csproj"), 699AppHostPath = appHostPath, 796AppHostPath = unrelatedPath, 828AppHostPath = appHostPath, 917AppHostPath = appHostPath, 993AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "UnrelatedAppHost", "UnrelatedAppHost.csproj"), 1028AppHostPath = Path.GetFullPath(Path.Combine("UnrelatedAppHost", "UnrelatedAppHost.csproj")), 1091AppHostPath = appHostPath, 1118AppHostPath = appHostPath, 1171AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1199AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1398AppHostPath = Path.Combine(ctx.Workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1830AppHostPath = appHostPath ?? Path.Combine(workspace.WorkspaceRoot.FullName, hash, $"{hash}.csproj"),
Commands\AppHostLauncherTests.cs (6)
1397AppHostPath = AppHostFile.FullName, 1768AppHostPath = "/tmp/AppHost.csproj", 1792AppHostPath = "/tmp/OtherAppHost.csproj", 1813AppHostPath = "/tmp/AppHost.csproj", 1830AppHostPath = "/tmp/AppHost.csproj", 1922AppHostPath = appHostPath,
Commands\DescribeCommandTests.cs (2)
1098AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"), 1122AppHostPath = 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 (15)
131AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 146AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App2", "App2.AppHost.csproj"), 237AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 277AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 321AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 365AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 444AppHostPath = appHostPath, 505AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 544AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 585AppHostPath = appHostPath, 677AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 721AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 761AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 808AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "App1", "App1.AppHost.csproj"), 890AppHostPath = appHostPath,
Commands\ResourceCommandTests.cs (3)
211AppHostPath = appHostProjectFile.FullName, 259AppHostPath = appHostProjectFile.FullName, 1256AppHostPath = "/app/AppHost.csproj",
Commands\StopCommandTests.cs (4)
71selected.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath, ProcessId = int.MaxValue - 1, CliProcessId = int.MaxValue - 3 }; 72sibling.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath, ProcessId = int.MaxValue - 2, CliProcessId = int.MaxValue - 3 }; 122connection.AppHostInfo = new AppHostInformation { AppHostPath = appHostPath, ProcessId = int.MaxValue - 1, CliProcessId = int.MaxValue - 3 }; 1614AppHostPath = appHostPath,
Commands\TelemetryFollowTests.cs (1)
240AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "Test.AppHost.csproj"),
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\TrayProtocolCommandTests.cs (1)
316AppHostInfo = new AppHostInformation { AppHostPath = path, ProcessId = pid }
Mcp\AppHostConnectionSelectionLogicTests.cs (1)
343AppHostPath = appHostPath,
Mcp\ExcludeFromMcpTests.cs (1)
199AppHostPath = AppHostPath,
Mcp\ListAppHostsToolTests.cs (4)
50AppHostPath = appHostPath, 82AppHostPath = appHostPath, 114AppHostPath = inScopeAppHostPath, 125AppHostPath = outOfScopeAppHostPath,
Mcp\ListResourcesToolTests.cs (1)
1202AppHostPath = appHostPath,
Mcp\SelectAppHostToolTests.cs (1)
193AppHostPath = appHostPath,
Mcp\WaitForResourcesToolTests.cs (1)
804AppHostPath = AppHostPath,
Processes\ProcessTreeGracefulShutdownServiceTests.cs (8)
36AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 74AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 190AppHostPath = "apphost.cs", 208AppHostPath = "apphost.cs", 250AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 295AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 334AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"), 372AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "apphost.cs"),
Projects\RunningInstanceManagerTests.cs (1)
140AppHostPath = "/path/to/AppHost.csproj",
TestServices\TerminalCommandTestServices.cs (1)
24AppHostPath = Path.Combine(workspace.WorkspaceRoot.FullName, "TestAppHost", "TestAppHost.csproj"),
TestServices\TestAuxiliaryBackchannelServer.cs (1)
50AppHostPath = appHostPath,
41 references to AppHostPath
aspire (34)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
584AppHostPath = legacyInfo.AppHostPath,
Backchannel\AppHostConnectionHelper.cs (2)
22connection.AppHostInfo?.AppHostPath is { } candidatePath && 86logger.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A");
Backchannel\AppHostConnectionResolver.cs (2)
293if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath) 338var appHostPath = c.AppHostInfo?.AppHostPath ?? "Unknown";
Backchannel\AuxiliaryBackchannelMonitor.cs (4)
207c.AppHostInfo?.AppHostPath is { } candidatePath && 237.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName)) 616connection.IsInScope = IsAppHostInScope(connection.AppHostInfo?.AppHostPath); 640connection.AppHostInfo?.AppHostPath ?? "N/A",
Backchannel\OrphanedAppHostCollector.cs (2)
67appHostInfo?.AppHostPath, 75appHostInfo?.AppHostPath,
Backchannel\TrayWatchStream.cs (1)
216AppHostPath = info.AppHostPath,
Commands\AppHostLauncher.cs (1)
728PathNormalizer.ResolveToFilesystemPath(appHostInfo.AppHostPath),
Commands\PsCommand.cs (3)
387var appHostPath = info.AppHostPath; 417_logger.LogDebug(ex, "Failed to get AppHost SDK version for {AppHostPath}", info.AppHostPath); 433_logger.LogDebug(ex, "Failed to get dashboard URL for {AppHostPath}", info.AppHostPath);
Commands\ResourceCommand.cs (1)
714.Where(connection => IsMatchingAppHostPath(connection.AppHostInfo?.AppHostPath, targetPath))
Commands\StopCommand.cs (9)
193(appHostFile is null || GetAppHostPathComparer().Equals(info.AppHostPath, appHostFile.FullName))) 393result is { Success: true, Connection.AppHostInfo.AppHostPath: { } connectionAppHostPath } && 593var appHostPath = connection.AppHostInfo?.AppHostPath ?? "Unknown"; 641if (string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath)) 646var appHostPath = connection.AppHostInfo.AppHostPath; 654return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 656: connection.AppHostInfo.AppHostPath; 661return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 663: new FileInfo(connection.AppHostInfo.AppHostPath);
Commands\StopCommand.TrayProtocol.cs (1)
70info.ProcessId == processId && GetAppHostPathComparer().Equals(info.AppHostPath, appHostFile.FullName))
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\ListResourcesTool.cs (1)
156if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath)
Mcp\Tools\SelectAppHostTool.cs (2)
94.Any(static connection => connection.AppHostInfo?.AppHostPath is not null); 110PathNormalizer.ResolveToFilesystemPath(matchingConnection.AppHostInfo!.AppHostPath);
Mcp\Tools\WaitForResourcesTool.cs (1)
115if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 })
Aspire.Cli.Tests (7)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (4)
102Assert.Equal(firstConnection.AppHostInfo!.AppHostPath, replacementConnection.AppHostInfo!.AppHostPath); 325Assert.Equal(secondConnection.AppHostInfo!.AppHostPath, replacementConnection.AppHostInfo!.AppHostPath);
Commands\AgentMcpCommandTests.cs (1)
769ctx.BackchannelMonitor.SelectedAppHostPath = unrelatedConnection.AppHostInfo!.AppHostPath;
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
155AppHostPath = AppHostInfo.AppHostPath,
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
87.Where(c => AuxiliaryBackchannelMonitor.IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))