50 references to PackageSourceIdentity
aspire (36)
Commands\AddCommand.cs (7)
131
if (source is not null && !
PackageSourceIdentity
.Comparer.Equals(source, PackageSources.NuGetOrg))
636
.Distinct(
PackageSourceIdentity
.Comparer);
655
.GroupBy(static mapping => mapping.Source,
PackageSourceIdentity
.Comparer)
731
(selectedSource is null ||
PackageSourceIdentity
.Comparer.Equals(p.Package.Source, selectedSource))).ToArray();
931
PackageSourceIdentity
.Normalize(package.Package.Source);
935
var isNuGetOrg =
PackageSourceIdentity
.Comparer.Equals(package.Package.Source, PackageSources.NuGetOrg);
965
if (packages.Any(package => !
PackageSourceIdentity
.Comparer.Equals(package.Package.Source, PackageSources.NuGetOrg)))
Commands\NewCommand.cs (2)
377
if (packageSource is not null && !
PackageSourceIdentity
.Comparer.Equals(packageSource, PackageSources.NuGetOrg))
652
if (!
PackageSourceIdentity
.Comparer.Equals(source, PackageSources.NuGetOrg))
DotNet\DotNetAppHostNuGetConfigBuilder.cs (2)
51
PackageSourceIdentity
.Comparer.Equals(mapping.Source, source.Source)))
67
.Where(mapping =>
PackageSourceIdentity
.Comparer.Equals(mapping.Source, source.Source))
NuGet\BundleNuGetService.cs (2)
286
PackageSourceIdentity
.IsNamedSourceReference(mapping.Source) &&
325
PackageSourceIdentity
.Comparer.Equals(mapping.Source, PackageSources.NuGetOrg)))
NuGet\NuGetClient.cs (1)
818
PackageSourceIdentity
.Comparer.Equals(source.Source, sourceLocation));
NuGet\NuGetConfigurationBuilder.cs (6)
169
.Distinct(
PackageSourceIdentity
.Comparer))
174
var configuredKey = mappings.First(mapping =>
PackageSourceIdentity
.Comparer.Equals(mapping.Source, source)).SourceKey;
183
PackageSourceIdentity
.IsNamedSourceReference(source) &&
414
PackageSourceIdentity
.Comparer.Equals(mapping.Source, packageScopedAppendSource) &&
425
.ToHashSet(
PackageSourceIdentity
.Comparer);
459
source =>
PackageSourceIdentity
.Comparer.Equals(source.Source, mapping.Source)))
Packaging\IntegrationSourceConfiguration.cs (2)
78
return sources.Distinct(
PackageSourceIdentity
.Comparer).ToArray();
138
.GroupBy(source => source.Source!,
PackageSourceIdentity
.Comparer)
Packaging\PackageChannel.cs (1)
338
.DistinctBy(p => (Id: p.Id.ToUpperInvariant(), Version: p.Version.ToUpperInvariant(), Source:
PackageSourceIdentity
.Normalize(p.Source)));
Packaging\PackageSourceOverrideMappings.cs (1)
88
(mapping.PackageFilter.ToUpperInvariant(),
PackageSourceIdentity
.Normalize(mapping.Source)))
Projects\IntegrationRestorePlan.cs (10)
214
if (!additionalSources.Contains(mapping.Source,
PackageSourceIdentity
.Comparer))
231
PackageSourceIdentity
.Comparer.Equals(mapping.Source, packageSourceOverride))
238
if (!additionalSources.Contains(mapping.Source,
PackageSourceIdentity
.Comparer))
302
.ThenBy(static mapping =>
PackageSourceIdentity
.Normalize(mapping.Source), StringComparer.Ordinal);
306
AppendIdentityPart(builder,
PackageSourceIdentity
.Normalize(mapping.Source));
310
.Distinct(
PackageSourceIdentity
.Comparer)
311
.OrderBy(
PackageSourceIdentity
.Normalize, StringComparer.Ordinal))
313
AppendIdentityPart(builder,
PackageSourceIdentity
.Normalize(source));
492
.Distinct(
PackageSourceIdentity
.Comparer)
505
.FirstOrDefault(source =>
PackageSourceIdentity
.Comparer.Equals(source.Source, primarySource))
Templating\TemplateNuGetConfigService.cs (1)
66
!
PackageSourceIdentity
.Comparer.Equals(mapping.Source, PackageSources.NuGetOrg)))
Utils\CliPathHelper.cs (1)
196
var normalized =
PackageSourceIdentity
.Normalize(feedUrl);
Aspire.Cli.Tests (14)
Commands\NewCommandLocalTemplateTests.cs (4)
832
Assert.Equal(expectedSources, NuGetTestHelper.GetEligiblePackageSources(outputPath, "Aspire.AppHost.Sdk"),
PackageSourceIdentity
.Comparer);
833
Assert.Equal(expectedSources, NuGetTestHelper.GetEligiblePackageSources(outputPath, "Aspire.Hosting.Redis"),
PackageSourceIdentity
.Comparer);
869
NuGetTestHelper.GetEligiblePackageSources(outputPath, "Aspire.Hosting"),
PackageSourceIdentity
.Comparer);
965
Assert.Equal([expectedSource], NuGetTestHelper.GetEligiblePackageSources(outputPath, "Aspire.Hosting.Redis"),
PackageSourceIdentity
.Comparer);
NuGet\TemporaryNuGetConfigFileTests.cs (1)
67
PackageSourceIdentity
.Comparer);
Packaging\PackageSourceIdentityTests.cs (3)
120
PackageSourceIdentity
.Normalize(feed.FullName),
121
PackageSourceIdentity
.Normalize(nativeSource.Source));
160
Assert.Equal(OperatingSystem.IsWindows(),
PackageSourceIdentity
.Comparer.Equals(feed.FullName, caseVariant));
Packaging\PackageSourceOverrideMappingsTests.cs (1)
73
.Where(mapping =>
PackageSourceIdentity
.Comparer.Equals(mapping.Source, source))
Projects\PrebuiltAppHostServerTests.cs (2)
5494
.SingleOrDefault(element =>
PackageSourceIdentity
.Comparer.Equals(
5501
.FirstOrDefault(key => key is not null &&
PackageSourceIdentity
.Comparer.Equals(key, source));
Templating\TemplateNuGetConfigServiceTests.cs (3)
148
var expectedSources = new[] { source, PackageSources.NuGetOrg }.Distinct(
PackageSourceIdentity
.Comparer).Order(StringComparer.Ordinal);
152
PackageSourceIdentity
.Comparer);
157
PackageSourceIdentity
.Comparer);