19 instantiations of NuGetSourceInfo
aspire (1)
NuGet\NuGetClient.cs (1)
1183return new(
Aspire.Cli.Tests (18)
NuGet\NuGetConfigurationTests.cs (16)
29new("company", "company", true, false, false), 30new("aspire-test", "daily", true, false, false), 31new("aspire-test-0", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), isEnabled, true, false) 77new("company", "company", true, true, true), 78new(sourceKey, "channel", true, true, false) { IsCliManaged = isCliManaged } 109Sources = [new("aspire-test", "daily", true, false, false)] 136new("company", "company", true, true, true), 137new("aspire-staging", "staging", true, false, false), 138new("disabled", "disabled", false, false, false) 166Sources = [new("aspire-staging", "staging", true, false, false)] 195new("company-public", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), 230new("company", "company", true, false, false), 231new("aspire-test", NuGetSourceIdentity.Compute(channelSource, settings.SourceIdentityKey), 233new("nuget.org", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), 310Sources = [new("company", "identity", false, false, false)], 334Sources = [new("old", "identity", isEnabled, false, false)]
Projects\PrebuiltAppHostServerTests.cs (2)
2356=> new( 5324.Select(source => new NuGetSourceInfo(
14 references to NuGetSourceInfo
aspire (10)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (1)
76foreach (var source in settings.Sources.Where(source =>
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
190var ambientSource = sourceConfiguration.Settings.Sources.Single(ambient =>
NuGet\BundleNuGetService.cs (1)
39IReadOnlyList<NuGetSourceInfo> Sources,
NuGet\NuGetClient.cs (1)
1181private static NuGetSourceInfo CreateSourceInfo(PackageSource source, byte[] identityKey)
NuGet\NuGetConfigurationBuilder.cs (6)
102internal static bool IsCliManagedSource(NuGetSourceInfo source, string workloadId) 116IReadOnlyList<NuGetSourceInfo> ambientSources, 157var preferredDisabledMatch = ambientMatches.FirstOrDefault(static ambientSource => 162foreach (var ambientSource in selectedMatches) 300IReadOnlyList<NuGetSourceInfo> ambientSources, 317foreach (var ambientSource in ambientSources.Where(static source => source.IsEnabled))
Aspire.Cli.Tests (4)
NuGet\NuGetClientTests.cs (2)
1502var sourceInfo = Assert.Single(settings.Sources, source => source.Name == "private"); 1567var sourceInfo = Assert.Single(settings.Sources);
NuGet\NuGetTestHelperTests.cs (1)
24var source = Assert.Single(snapshot.Sources);
Projects\PrebuiltAppHostServerTests.cs (1)
2350private static NuGetSourceInfo CreateNuGetSourceInfo(