54 references to PackageChannelType
aspire (35)
Commands\AddCommand.cs (4)
541
.ThenByDescending(p => p.Channel.Type is
PackageChannelType
.Implicit)
560
&& channel.Type is
PackageChannelType
.Explicit
651
var implicitGroup = byChannel.FirstOrDefault(g => g.Channel.Type is Packaging.
PackageChannelType
.Implicit);
653
.Where(g => g.Channel.Type is Packaging.
PackageChannelType
.Explicit)
Commands\InitCommand.cs (1)
656
/// <item><description>The matched channel is <see cref="
PackageChannelType
.Implicit"/>.
Commands\IntegrationPackageSearchService.cs (2)
109
: allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
191
.OrderByDescending(p => p.Channel.Type is
PackageChannelType
.Implicit)
Commands\NewCommand.cs (4)
194
selectedChannel.Type is
PackageChannelType
.Explicit &&
396
?? channels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
679
var implicitGroup = byChannel.FirstOrDefault(g => g.Key.Type is Packaging.
PackageChannelType
.Implicit);
681
.Where(g => g.Key.Type is Packaging.
PackageChannelType
.Explicit)
Commands\UpdateCommand.cs (2)
288
channel = allChannels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
340
channel = allChannels.FirstOrDefault(c => c.Type is
PackageChannelType
.Implicit)
Packaging\NuGetConfigMerger.cs (2)
40
if (channel.Type is not
PackageChannelType
.Explicit || mappings is null || mappings.Length == 0)
820
if (channel.Type is not
PackageChannelType
.Explicit || mappings is null || mappings.Length == 0)
Packaging\NuGetConfigPrompter.cs (2)
34
if (channel.Type is not
PackageChannelType
.Explicit)
88
if (channel.Type is not
PackageChannelType
.Explicit)
Packaging\PackageChannel.cs (10)
62
public
PackageChannelType
Type { get; } = mappings is null ?
PackageChannelType
.Implicit :
PackageChannelType
.Explicit;
70
Type is
PackageChannelType
.Explicit && !string.Equals(Name, PackageChannelNames.Stable, StringComparisons.ChannelName);
106
Type is
PackageChannelType
.Explicit &&
220
using var tempNuGetConfig = Type is
PackageChannelType
.Explicit ? await TemporaryNuGetConfig.CreateAsync(Mappings!) : null;
387
using var tempNuGetConfig = Type is
PackageChannelType
.Explicit ? await TemporaryNuGetConfig.CreateAsync(Mappings!) : null;
499
using var tempNuGetConfig = Type is
PackageChannelType
.Explicit ? await TemporaryNuGetConfig.CreateAsync(Mappings!) : null;
590
using var tempNuGetConfig = Type is
PackageChannelType
.Explicit ? await TemporaryNuGetConfig.CreateAsync(Mappings!) : null;
669
if (!VersionHelper.IsLocalBuildChannel(Name) || Type is not
PackageChannelType
.Explicit || mappings is not { Length: > 0 })
Projects\DotNetBasedAppHostServerProject.cs (1)
335
: channels.Where(c => c.Type ==
PackageChannelType
.Explicit);
Projects\PrebuiltAppHostServer.cs (3)
1144
c.Type ==
PackageChannelType
.Explicit &&
1264
c.Type ==
PackageChannelType
.Explicit &&
1330
return channels.Where(c => c.Type ==
PackageChannelType
.Explicit).ToArray();
Projects\ProjectUpdater.cs (1)
91
if (channel.Type ==
PackageChannelType
.Explicit)
Templating\TemplateNuGetConfigService.cs (3)
261
allChannels.Any(static c => c.Type is
PackageChannelType
.Explicit && HasInstalledLocalBuildPackageSource(c))));
284
channels = allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
292
: allChannels.Where(c => c.Type is
PackageChannelType
.Implicit);
Aspire.Cli.Tests (19)
Packaging\NuGetConfigMergerSnapshotTests.cs (5)
69
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
131
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
192
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
251
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
315
var channel = channels.First(c => c.Type is
PackageChannelType
.Explicit && string.Equals(c.Name, channelName, StringComparison.OrdinalIgnoreCase));
Packaging\PackageChannelTests.cs (5)
28
Assert.Equal(
PackageChannelType
.Implicit, channel.Type);
48
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
68
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
88
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
104
Assert.Equal(
PackageChannelType
.Explicit, channel.Type);
Packaging\PackagingServiceTests.cs (2)
801
/// on: the <c>stable</c> channel is always <see cref="
PackageChannelType
.Explicit"/> with a
825
Assert.Equal(
PackageChannelType
.Explicit, stableChannel.Type);
Templating\TemplateNuGetConfigServiceTests.cs (7)
221
var requestedChannels = new List<
PackageChannelType
>();
317
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);
436
Assert.Equal(
PackageChannelType
.Implicit, selection.Channel.Type);
632
Assert.Equal(expectImplicitChannel ?
PackageChannelType
.Implicit :
PackageChannelType
.Explicit, selection.Channel.Type);
1020
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);
1072
Assert.Equal(
PackageChannelType
.Explicit, selection.Channel.Type);