3 implementations of AppHostInfo
aspire (1)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
79public AppHostInformation? AppHostInfo { get; private set; }
Aspire.Cli.Tests (2)
Commands\TerminalCommandTests.cs (1)
820public AppHostInformation? AppHostInfo => _inner.AppHostInfo;
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
36public AppHostInformation? AppHostInfo { get; set; }
51 references to AppHostInfo
aspire (42)
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 (4)
293if (connection.AppHostInfo?.AppHostPath is not { Length: > 0 } appHostPath) 314if (result.Success && result.Connection.AppHostInfo?.CliLogFilePath is { } cliLogFilePath) 335.OrderByDescending(c => c.AppHostInfo?.StartedAt ?? DateTimeOffset.MinValue) 338var appHostPath = c.AppHostInfo?.AppHostPath ?? "Unknown";
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
207c.AppHostInfo?.AppHostPath is { } candidatePath && 237.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))
Backchannel\OrphanedAppHostCollector.cs (3)
50var appHostInfo = connection.AppHostInfo; 92if (connection.AppHostInfo is not { CliProcessId: int cliPid }) 97if (connection.AppHostInfo.CliStableStartedAt is { } cliStableStartedAt)
Backchannel\TrayWatchStream.cs (1)
204if (connection.AppHostInfo is not { } info)
Commands\AppHostFollowDisconnectHelpers.cs (1)
21if (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)
380var info = connection.AppHostInfo;
Commands\ResourceCommand.cs (1)
714.Where(connection => IsMatchingAppHostPath(connection.AppHostInfo?.AppHostPath, targetPath))
Commands\StopCommand.cs (11)
191.Where(result => result.Connection?.AppHostInfo is { } info && 393result is { Success: true, Connection.AppHostInfo.AppHostPath: { } connectionAppHostPath } && 593var appHostPath = connection.AppHostInfo?.AppHostPath ?? "Unknown"; 594var appHostInfo = connection.AppHostInfo; 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); 686return includeProcessId && connection.AppHostInfo is { } appHostInfo
Commands\StopCommand.TrayProtocol.cs (1)
69.Where(connection => connection.AppHostInfo is { } info &&
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\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 })
Projects\RunningInstanceManager.cs (1)
100var appHostInfo = backchannel.AppHostInfo;
Aspire.Cli.Tests (9)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (8)
102Assert.Equal(firstConnection.AppHostInfo!.AppHostPath, replacementConnection.AppHostInfo!.AppHostPath); 103Assert.Equal(firstConnection.AppHostInfo.ProcessId, replacementConnection.AppHostInfo.ProcessId); 325Assert.Equal(secondConnection.AppHostInfo!.AppHostPath, replacementConnection.AppHostInfo!.AppHostPath); 326Assert.Equal(secondConnection.AppHostInfo.ProcessId, replacementConnection.AppHostInfo.ProcessId);
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
87.Where(c => AuxiliaryBackchannelMonitor.IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))