2 writes to AppHostInfo
aspire (2)
Backchannel\AppHostAuxiliaryBackchannel.cs (2)
47AppHostInfo = appHostInfo; 137AppHostInfo = await GetAppHostInformationAsync(cancellationToken).ConfigureAwait(false);
29 references to AppHostInfo
aspire (26)
Backchannel\AuxiliaryBackchannelMonitor.cs (3)
58c.AppHostInfo?.AppHostPath != null && 59string.Equals(Path.GetFullPath(c.AppHostInfo.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase)); 89.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))
Commands\McpStartCommand.cs (11)
251connection.AppHostInfo?.AppHostPath ?? "N/A", 252connection.AppHostInfo?.ProcessId.ToString(CultureInfo.InvariantCulture) ?? "N/A", 253connection.AppHostInfo?.CliProcessId?.ToString(CultureInfo.InvariantCulture) ?? "N/A"); 383c.AppHostInfo?.AppHostPath != null && 384string.Equals(c.AppHostInfo.AppHostPath, selectedPath, StringComparison.OrdinalIgnoreCase)); 402_logger.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A"); 409.Where(c => c.AppHostInfo?.AppHostPath != null) 410.Select(c => c.AppHostInfo!.AppHostPath) 422.OrderBy(c => c.AppHostInfo?.AppHostPath ?? string.Empty, StringComparer.OrdinalIgnoreCase) 423.ThenBy(c => c.AppHostInfo?.ProcessId ?? int.MaxValue) 429fallback?.AppHostInfo?.AppHostPath ?? "N/A");
Mcp\ListAppHostsTool.cs (6)
52c.AppHostInfo?.AppHostPath ?? "Unknown", 53c.AppHostInfo?.ProcessId ?? 0, 54c.AppHostInfo?.CliProcessId)) 60c.AppHostInfo?.AppHostPath ?? "Unknown", 61c.AppHostInfo?.ProcessId ?? 0, 62c.AppHostInfo?.CliProcessId))
Mcp\ListIntegrationsTool.cs (1)
161var appHostPath = inScopeConnections[0].AppHostInfo?.AppHostPath;
Mcp\SelectAppHostTool.cs (4)
75if (c.AppHostInfo?.AppHostPath is null) 79var candidatePath = Path.GetFullPath(c.AppHostInfo.AppHostPath); 87.Where(c => c.AppHostInfo?.AppHostPath != null) 88.Select(c => c.AppHostInfo!.AppHostPath)
Projects\RunningInstanceManager.cs (1)
49var appHostInfo = backchannel.AppHostInfo;
Aspire.Cli.Tests (3)
TestServices\TestAuxiliaryBackchannelMonitor.cs (3)
31c.AppHostInfo?.AppHostPath != null && 32string.Equals(Path.GetFullPath(c.AppHostInfo.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase)); 59.Where(c => IsAppHostInScopeOfDirectory(c.AppHostInfo?.AppHostPath, workingDirectory.FullName))