3 implementations of AppHostInfo
aspire (1)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
81public AppHostInformation? AppHostInfo { get; private set; }
Aspire.Cli.Tests (2)
Commands\TerminalCommandTests.cs (1)
673public AppHostInformation? AppHostInfo => _inner.AppHostInfo;
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
22public AppHostInformation? AppHostInfo { get; set; }
48 references to AppHostInfo
aspire (45)
Backchannel\AppHostConnectionHelper.cs (8)
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) 88.ThenBy(c => c.AppHostInfo?.ProcessId ?? int.MaxValue) 93fallback?.AppHostInfo?.AppHostPath ?? "N/A");
Backchannel\AppHostConnectionResolver.cs (4)
290if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath) 311if (result.Success && result.Connection.AppHostInfo?.CliLogFilePath is { } cliLogFilePath) 332.OrderByDescending(c => c.AppHostInfo?.StartedAt ?? DateTimeOffset.MinValue) 335var appHostPath = c.AppHostInfo?.AppHostPath ?? "Unknown";
Backchannel\AuxiliaryBackchannelMonitor.cs (3)
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))
Backchannel\IAuxiliaryBackchannelMonitor.cs (1)
37string? ResolvedAppHostPath => SelectedConnection?.AppHostInfo?.AppHostPath;
Backchannel\OrphanedAppHostCollector.cs (3)
51var appHostInfo = connection.AppHostInfo; 93if (connection.AppHostInfo is not { CliProcessId: int cliPid }) 98if (connection.AppHostInfo.CliStableStartedAt is { } cliStableStartedAt)
Commands\AppHostFollowDisconnectHelpers.cs (1)
32if (connection.AppHostInfo?.ProcessId is not int pid)
Commands\AppHostLauncher.cs (1)
921var appHostInfo = result.Backchannel!.AppHostInfo;
Commands\PsCommand.cs (1)
333var info = connection.AppHostInfo;
Commands\ResourceCommand.cs (1)
713.Where(connection => IsMatchingAppHostPath(connection.AppHostInfo?.AppHostPath, targetPath))
Commands\StopCommand.cs (9)
494var appHostPath = connection.AppHostInfo?.AppHostPath ?? "Unknown"; 495var appHostInfo = connection.AppHostInfo; 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); 592return includeProcessId && connection.AppHostInfo is { } appHostInfo
Mcp\McpResourceToolRefreshService.cs (1)
88selectedAppHostPath = connection.AppHostInfo?.AppHostPath;
Mcp\Tools\ListAppHostsTool.cs (6)
50c.AppHostInfo?.AppHostPath ?? "Unknown", 51c.AppHostInfo?.ProcessId ?? 0, 52c.AppHostInfo?.CliProcessId)) 58c.AppHostInfo?.AppHostPath ?? "Unknown", 59c.AppHostInfo?.ProcessId ?? 0, 60c.AppHostInfo?.CliProcessId))
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)
Projects\RunningInstanceManager.cs (1)
102var appHostInfo = backchannel.AppHostInfo;
Aspire.Cli.Tests (3)
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))