8 references to AllowsPackage
aspire (6)
Packaging\PackageChannel.cs (6)
380
id => source.
AllowsPackage
(id) &&
489
.Where(metadata => IntegrationSource is { } source ? source.
AllowsPackage
(metadata.PackageId) : PackageIdFilters.IsIntegrationPackageId(metadata.PackageId))
581
tasks.Add(nuGetPackageCache.GetPackagesAsync(searchConfiguration, PolyglotTagSearchTerm, filter: IntegrationSource is { } source ? source.
AllowsPackage
: null, prerelease: false, useCache: true, cancellationToken));
586
tasks.Add(nuGetPackageCache.GetPackagesAsync(searchConfiguration, PolyglotTagSearchTerm, filter: IntegrationSource is { } source ? source.
AllowsPackage
: null, prerelease: true, useCache: true, cancellationToken));
613
!(IntegrationSource is { } source ? source.
AllowsPackage
(metadata.PackageId) : PackageIdFilters.IsIntegrationPackageId(metadata.PackageId)) ||
813
if (IntegrationSource is { } source && !source.
AllowsPackage
(packageId))
Aspire.Cli.Tests (2)
Packaging\IntegrationSourceTests.cs (2)
164
Assert.True(source.
AllowsPackage
("Other.Hosting.Redis"));
177
Assert.Equal(expected, source.
AllowsPackage
(packageId));