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