31 instantiations of InstallationInfo
aspire (6)
Acquisition\InstallationDiscovery.cs (3)
92return new InstallationInfo 216results.Add(new InstallationInfo 275results.Add(new InstallationInfo
Acquisition\InstallationInfo.cs (1)
158return new InstallationInfo
Acquisition\PeerInstallProbe.cs (1)
136return new PeerProbeResult.Ok(new InstallationInfo
Commands\InstallationInfoOutput.cs (1)
209new InstallationInfo
Aspire.Cli.Tests (25)
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (12)
135[binary] = new PeerProbeResult.Ok(new InstallationInfo 176[firstPathBinary] = new PeerProbeResult.Ok(new InstallationInfo 182[secondPathBinary] = new PeerProbeResult.Ok(new InstallationInfo 188[offPathBinary] = new PeerProbeResult.Ok(new InstallationInfo 224[binary] = new PeerProbeResult.Ok(new InstallationInfo 374[binary] = new PeerProbeResult.Ok(new InstallationInfo 407[binary] = new PeerProbeResult.Ok(new InstallationInfo 444[binary] = new PeerProbeResult.Ok(new InstallationInfo 478[binary] = new PeerProbeResult.Ok(new InstallationInfo 769[binary] = new PeerProbeResult.Ok(new InstallationInfo 799[binary] = new PeerProbeResult.Ok(new InstallationInfo 869[binary] = new PeerProbeResult.Ok(new InstallationInfo
Commands\DoctorCommandTests.cs (12)
636self: new InstallationInfo 648new InstallationInfo 703self: new InstallationInfo 715new InstallationInfo 768self: new InstallationInfo 780new InstallationInfo 835self: new InstallationInfo 881self: new InstallationInfo 914self: new InstallationInfo 953self: new InstallationInfo 965new InstallationInfo 1046self: new InstallationInfo
Commands\InstallationInfoOutputTests.cs (1)
20var self = new InstallationInfo
60 references to InstallationInfo
aspire (29)
Acquisition\IInstallationDiscovery.cs (4)
29/// <see cref="InstallationInfo.Status"/> = <c>ok</c> with version / 32InstallationInfo DescribeSelf(); 38/// <see cref="InstallationInfo.Status"/> = <c>notProbed</c> when the 42Task<IReadOnlyList<InstallationInfo>> DiscoverAllAsync(CancellationToken cancellationToken);
Acquisition\InstallationDiscovery.cs (7)
63public InstallationInfo DescribeSelf() 72internal InstallationInfo DescribeSelf(string? processPath) 75private InstallationInfo DescribeSelf(string? processPath, IReadOnlyList<InstallationPathHit>? pathHits) 116public Task<IReadOnlyList<InstallationInfo>> DiscoverAllAsync(CancellationToken cancellationToken) 125internal async Task<IReadOnlyList<InstallationInfo>> DiscoverAllAsync(string? processPath, CancellationToken cancellationToken) 130var self = DescribeSelf(processPath, pathHits); 138var results = new List<InstallationInfo> { self };
Acquisition\InstallationInfo.cs (3)
104/// Wire constants for <see cref="InstallationInfo.Status"/>. 119/// Wire constants for <see cref="InstallationInfo.PathStatus"/>. 138public static InstallationInfo Parse(JsonElement row)
Acquisition\IPeerInstallProbe.cs (2)
13public sealed record Ok(InstallationInfo Info) : PeerProbeResult; 29/// returns either the parsed <see cref="InstallationInfo"/> or a failure
Acquisition\PeerInstallProbe.cs (2)
92if (primary.ExitCode == 0 && TryParseRichProbeResult(binaryPath, primary.Stdout, out var primaryInfo)) 144private bool TryParseRichProbeResult(string binaryPath, string stdout, out InstallationInfo info)
Commands\DoctorCommand.cs (2)
100private void OutputJson(IReadOnlyList<EnvironmentCheckResult> results, IReadOnlyList<InstallationInfo> installations) 124private void OutputHumanReadable(IReadOnlyList<EnvironmentCheckResult> results, IReadOnlyList<InstallationInfo> installations)
Commands\InstallationInfoOutput.cs (7)
16public static Task<IReadOnlyList<InstallationInfo>> DiscoverAllSafelyAsync( 23internal static async Task<IReadOnlyList<InstallationInfo>> DiscoverAllSafelyAsync( 58private static async Task<IReadOnlyList<InstallationInfo>> DiscoverAllCoreAsync( 91public static IReadOnlyList<InstallationInfo> DescribeSelfSafely(IInstallationDiscovery discovery, ILogger logger) 130public static void OutputTable(IAnsiConsole ansiConsole, IReadOnlyList<InstallationInfo> installs) 155var install = installs[i]; 205private static IReadOnlyList<InstallationInfo> CreateFailedDiscoveryRow(string reason)
JsonSourceGenerationContext.cs (1)
58[JsonSerializable(typeof(InstallationInfo))]
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (1)
177public List<InstallationInfo>? Installations { get; set; }
Aspire.Cli.Tests (31)
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (17)
52var noSidecarRow = Assert.Single(results, r => 87var row = Assert.Single(results, r => string.Equals(r.CanonicalPath, binary, StringComparison.Ordinal)); 114var row = Assert.Single(results, r => 150var discoveredRow = results.Single(r => 202var firstPathRow = results.Single(r => 204var secondPathRow = results.Single(r => 206var offPathRow = results.Single(r => 237var row = results.Single(r => 262var row = results.Single(r => 289var row = results.Single(r => 341var row = results.Single(r => 385var prRow = results.Single(r => 419var prRow = results.Single(r => 456var brewRow = results.Single(r => 490var brewRow = results.Single(r => 896var row = matching[0]; 943var hintRow = Assert.Single(results, r => string.Equals(r.Path, binary, StringComparison.Ordinal));
Commands\DoctorCommandTests.cs (2)
1061InstallationInfo self, 1062IReadOnlyList<InstallationInfo>? others = null,
Commands\InstallationInfoOutputTests.cs (4)
20var self = new InstallationInfo 32return Task.FromResult<IReadOnlyList<InstallationInfo>>([self]); 45IReadOnlyList<InstallationInfo> results; 58var result = Assert.Single(results);
TestServices\FakeInstallationDiscovery.cs (8)
16private readonly InstallationInfo _self; 17private readonly IReadOnlyList<InstallationInfo> _others; 20public Func<CancellationToken, Task<IReadOnlyList<InstallationInfo>>>? DiscoverAllAsyncCallback { get; init; } 22public FakeInstallationDiscovery(InstallationInfo self, IReadOnlyList<InstallationInfo>? others = null, Exception? discoverAllException = null) 29public InstallationInfo DescribeSelf() => _self; 31public Task<IReadOnlyList<InstallationInfo>> DiscoverAllAsync(CancellationToken cancellationToken) 45IReadOnlyList<InstallationInfo> all = [_self, .. _others];