37 references to InstallSource
aspire (27)
Acquisition\IInstallSidecarReader.cs (2)
15/// Parsed install route. <see cref="InstallSource.Unknown"/> when the sidecar 59InstallSource Source,
Acquisition\InstallationDiscovery.cs (1)
245if (string.IsNullOrEmpty(channel) && sidecar.Source == InstallSource.Pr)
Acquisition\InstallSidecarReader.cs (2)
12/// (AOT-safe) and returns <see cref="InstallSource.Unknown"/> for missing, 79var parsed = InstallSourceExtensions.ParseInstallSource(effectiveRawSource);
Acquisition\InstallSource.cs (21)
43/// Maps between <see cref="InstallSource"/> values and the wire strings used 61/// Returns <see cref="InstallSource.Unknown"/> for null, empty, or 65public static InstallSource ParseInstallSource(string? raw) 69ScriptWire => InstallSource.Script, 70PrWire => InstallSource.Pr, 71WingetWire => InstallSource.Winget, 72BrewWire => InstallSource.Brew, 73DotnetToolWire => InstallSource.DotnetTool, 74LocalHiveWire => InstallSource.LocalHive, 75NixWire => InstallSource.Nix, 76_ => InstallSource.Unknown, 82/// <see cref="InstallSource"/>, or <see langword="null"/> for 83/// <see cref="InstallSource.Unknown"/>. 85public static string? ToWireString(this InstallSource source) 89InstallSource.Script => ScriptWire, 90InstallSource.Pr => PrWire, 91InstallSource.Winget => WingetWire, 92InstallSource.Brew => BrewWire, 93InstallSource.DotnetTool => DotnetToolWire, 94InstallSource.LocalHive => LocalHiveWire, 95InstallSource.Nix => NixWire,
Commands\UpdateCommand.cs (1)
149return InstallSourceExtensions.ParseInstallSource(source) == InstallSource.Nix;
Aspire.Cli.Tests (10)
Acquisition\InstallSidecarReaderTests.cs (10)
28var expected = Enum.Parse<InstallSource>(expectedEnumName); 129Assert.Equal(InstallSource.Unknown, ok.Info.Source); 217var source = Enum.Parse<InstallSource>(enumName); 225Assert.Null(InstallSource.Unknown.ToWireString()); 275Assert.Equal(InstallSource.Script, ok.Info.Source); 306Assert.Equal(InstallSource.Script, ok.Info.Source); 334Assert.Equal(InstallSource.Script, ok.Info.Source); 354Assert.Equal(InstallSource.Script, ok.Info.Source);