3 implementations of AppHostInfo
aspire (1)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
79public AppHostInformation? AppHostInfo { get; private set; }
Aspire.Cli.Tests (2)
Commands\TerminalCommandTests.cs (1)
674public AppHostInformation? AppHostInfo => _inner.AppHostInfo;
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
33public AppHostInformation? AppHostInfo { get; set; }
49 references to AppHostInfo
aspire (48)
Backchannel\AppHostConnectionHelper.cs (8)
53c.AppHostInfo?.AppHostPath != null && 55PathNormalizer.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath), 75logger.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A"); 82.Where(c => c.AppHostInfo?.AppHostPath != null) 83.Select(c => c.AppHostInfo!.AppHostPath) 95.OrderBy(c => c.AppHostInfo?.AppHostPath ?? string.Empty, StringComparer.OrdinalIgnoreCase) 96.ThenBy(c => c.AppHostInfo?.ProcessId ?? int.MaxValue) 101fallback?.AppHostInfo?.AppHostPath ?? "N/A");
Backchannel\AppHostConnectionResolver.cs (4)
291if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath) 312if (result.Success && result.Connection.AppHostInfo?.CliLogFilePath is { } cliLogFilePath) 333.OrderByDescending(c => c.AppHostInfo?.StartedAt ?? DateTimeOffset.MinValue) 336var appHostPath = c.AppHostInfo?.AppHostPath ?? "Unknown";
Backchannel\AuxiliaryBackchannelMonitor.cs (3)
176c.AppHostInfo?.AppHostPath != null && 178PathNormalizer.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath), 209.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))
Backchannel\IAuxiliaryBackchannelMonitor.cs (1)
30string? ResolvedAppHostPath => SelectedConnection?.AppHostInfo?.AppHostPath;
Backchannel\OrphanedAppHostCollector.cs (3)
50var appHostInfo = connection.AppHostInfo; 92if (connection.AppHostInfo is not { CliProcessId: int cliPid }) 97if (connection.AppHostInfo.CliStableStartedAt is { } cliStableStartedAt)
Commands\AppHostFollowDisconnectHelpers.cs (1)
32if (connection.AppHostInfo?.ProcessId is not int pid)
Commands\AppHostLauncher.cs (3)
669if (candidate.AppHostInfo is not { CliProcessId: int cliProcessId } appHostInfo || cliProcessId != childProcessId) 706if (candidate.AppHostInfo is not { } appHostInfo) 960var appHostInfo = result.Backchannel!.AppHostInfo;
Commands\PsCommand.cs (1)
333var info = connection.AppHostInfo;
Commands\ResourceCommand.cs (1)
714.Where(connection => IsMatchingAppHostPath(connection.AppHostInfo?.AppHostPath, targetPath))
Commands\StopCommand.cs (10)
299result is { Success: true, Connection.AppHostInfo.AppHostPath: { } connectionAppHostPath } && 486var appHostPath = connection.AppHostInfo?.AppHostPath ?? "Unknown"; 487var appHostInfo = connection.AppHostInfo; 532if (string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath)) 537var appHostPath = connection.AppHostInfo.AppHostPath; 545return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 547: connection.AppHostInfo.AppHostPath; 552return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 554: new FileInfo(connection.AppHostInfo.AppHostPath); 577return 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)
70if (c.AppHostInfo?.AppHostPath is null) 75PathNormalizer.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath), 84.Where(c => c.AppHostInfo?.AppHostPath != null) 85.Select(c => c.AppHostInfo!.AppHostPath)
Projects\RunningInstanceManager.cs (1)
100var appHostInfo = backchannel.AppHostInfo;
Aspire.Cli.Tests (1)
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
70.Where(c => AuxiliaryBackchannelMonitor.IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))