2 writes to AppHostInfo
aspire (2)
Backchannel\AppHostAuxiliaryBackchannel.cs (2)
47
AppHostInfo
= appHostInfo;
137
AppHostInfo
= await GetAppHostInformationAsync(cancellationToken).ConfigureAwait(false);
29 references to AppHostInfo
aspire (26)
Backchannel\AuxiliaryBackchannelMonitor.cs (3)
58
c.
AppHostInfo
?.AppHostPath != null &&
59
string.Equals(Path.GetFullPath(c.
AppHostInfo
.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase));
89
.Where(c => IsAppHostInScopeOfDirectory(c.
AppHostInfo
?.AppHostPath, workingDirectory.FullName))
Commands\McpStartCommand.cs (11)
251
connection.
AppHostInfo
?.AppHostPath ?? "N/A",
252
connection.
AppHostInfo
?.ProcessId.ToString(CultureInfo.InvariantCulture) ?? "N/A",
253
connection.
AppHostInfo
?.CliProcessId?.ToString(CultureInfo.InvariantCulture) ?? "N/A");
383
c.
AppHostInfo
?.AppHostPath != null &&
384
string.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)
429
fallback?.
AppHostInfo
?.AppHostPath ?? "N/A");
Mcp\ListAppHostsTool.cs (6)
52
c.
AppHostInfo
?.AppHostPath ?? "Unknown",
53
c.
AppHostInfo
?.ProcessId ?? 0,
54
c.
AppHostInfo
?.CliProcessId))
60
c.
AppHostInfo
?.AppHostPath ?? "Unknown",
61
c.
AppHostInfo
?.ProcessId ?? 0,
62
c.
AppHostInfo
?.CliProcessId))
Mcp\ListIntegrationsTool.cs (1)
161
var appHostPath = inScopeConnections[0].
AppHostInfo
?.AppHostPath;
Mcp\SelectAppHostTool.cs (4)
75
if (c.
AppHostInfo
?.AppHostPath is null)
79
var candidatePath = Path.GetFullPath(c.
AppHostInfo
.AppHostPath);
87
.Where(c => c.
AppHostInfo
?.AppHostPath != null)
88
.Select(c => c.
AppHostInfo
!.AppHostPath)
Projects\RunningInstanceManager.cs (1)
49
var appHostInfo = backchannel.
AppHostInfo
;
Aspire.Cli.Tests (3)
TestServices\TestAuxiliaryBackchannelMonitor.cs (3)
31
c.
AppHostInfo
?.AppHostPath != null &&
32
string.Equals(Path.GetFullPath(c.
AppHostInfo
.AppHostPath), Path.GetFullPath(SelectedAppHostPath), StringComparison.OrdinalIgnoreCase));
59
.Where(c => IsAppHostInScopeOfDirectory(c.
AppHostInfo
?.AppHostPath, workingDirectory.FullName))