58 references to PackageChannelType
aspire (38)
Commands\AddCommand.cs (7)
606
if (channel.Type is
PackageChannelType
.Explicit)
785
.ThenByDescending(p => p.Channel.Type is
PackageChannelType
.Implicit)
805
&& channel.Type is
PackageChannelType
.Explicit
867
.OrderByDescending(package => package.Channel.Type is
PackageChannelType
.Explicit &&
869
.ThenByDescending(package => package.Channel.Type is
PackageChannelType
.Implicit)
873
.OrderByDescending(package => package.Channel.Type is
PackageChannelType
.Explicit &&
937
(isNuGetOrg ? "nuget.org" : package.Channel.Type is
PackageChannelType
.Explicit
Commands\InitCommand.cs (1)
735
/// <item><description>The matched channel is <see cref="
PackageChannelType
.Implicit"/>.
Commands\NewCommand.cs (4)
220
selectedChannel.Type is
PackageChannelType
.Explicit &&
481
?? channels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
901
var implicitGroup = byChannel.FirstOrDefault(g => g.Key.Type is Packaging.
PackageChannelType
.Implicit);
903
.Where(g => g.Key.Type is Packaging.
PackageChannelType
.Explicit)
Commands\UpdateCommand.cs (4)
401
channel = allChannels.First(c => c.Type is
PackageChannelType
.Implicit);
405
channel = allChannels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
457
channel = allChannels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
463
if (dryRun && channel.Type !=
PackageChannelType
.Explicit)
Packaging\IntegrationPackageSearchService.cs (3)
185
return allChannels.Where(static channel => channel.Type is
PackageChannelType
.Implicit).Take(1);
208
: allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
294
.OrderByDescending(p => p.Channel.Type is
PackageChannelType
.Implicit)
Packaging\PackageChannel.cs (7)
63
public
PackageChannelType
Type { get; private init; } = mappings is null ?
PackageChannelType
.Implicit :
PackageChannelType
.Explicit;
72
Type is
PackageChannelType
.Explicit && !string.Equals(Name, PackageChannelNames.Stable, StringComparisons.ChannelName);
108
Type is
PackageChannelType
.Explicit &&
980
if (!VersionHelper.IsLocalBuildChannel(Name) || Type is not
PackageChannelType
.Explicit || mappings is not { Length: > 0 })
1135
Type =
PackageChannelType
.Explicit
Projects\DotNetBasedAppHostServerProject.cs (1)
283
: channels.Where(c => c.Type ==
PackageChannelType
.Explicit);
Projects\GuestAppHostProject.cs (2)
1937
(context.Channel.Type is
PackageChannelType
.Explicit &&
2007
var requestedChannel = context.Channel.Type is
PackageChannelType
.Explicit
Projects\ProjectUpdater.cs (4)
38
if (context.DryRun && (!context.HasExplicitChannel || channel.Type !=
PackageChannelType
.Explicit))
57
var hasExplicitChannelPolicy = context.HasExplicitChannel && channel.Type ==
PackageChannelType
.Explicit;
444
if (!context.HasExplicitChannel || context.Channel.Type !=
PackageChannelType
.Explicit)
542
var targetChannel = channel.Type is
PackageChannelType
.Implicit
Projects\RepositoryToolUpdater.cs (2)
132
(channel.Type ==
PackageChannelType
.Implicit && SemVersion.PrecedenceComparer.Compare(newVersion, currentVersion) < 0))
243
(channel.Type ==
PackageChannelType
.Implicit || string.Equals(channel.Name, PackageChannelNames.Stable, StringComparisons.ChannelName));
Templating\TemplateNuGetConfigService.cs (3)
294
allChannels.Any(static c => c.Type is
PackageChannelType
.Explicit && HasInstalledLocalBuildPackageSource(c))));
317
channels = allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
325
: allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
Aspire.Cli.Tests (20)
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (5)
67
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
130
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
202
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
266
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
337
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
Packaging\PackageChannelTests.cs (5)
131
Assert.Equal(
PackageChannelType
.Implicit, channel.Type);
151
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
171
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
191
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
207
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
Packaging\PackagingServiceTests.cs (2)
817
Assert.Equal(
PackageChannelType
.Explicit, stableChannel.Type);
846
Assert.Equal(
PackageChannelType
.Explicit, stable.Type);
Projects\ProjectUpdaterTests.cs (1)
2141
HasExplicitChannel = channel.Type ==
PackageChannelType
.Explicit,
Templating\TemplateNuGetConfigServiceTests.cs (7)
451
var requestedChannels = new List<
PackageChannelType
>();
547
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);
666
Assert.Equal(
PackageChannelType
.Implicit, selection.Channel.Type);
862
Assert.Equal(expectImplicitChannel ?
PackageChannelType
.Implicit :
PackageChannelType
.Explicit, selection.Channel.Type);
1250
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);
1302
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);