37 references to Explicit
aspire (22)
Commands\AddCommand.cs (2)
560
&& channel.Type is PackageChannelType.
Explicit
653
.Where(g => g.Channel.Type is Packaging.PackageChannelType.
Explicit
)
Commands\NewCommand.cs (2)
194
selectedChannel.Type is PackageChannelType.
Explicit
&&
681
.Where(g => g.Key.Type is Packaging.PackageChannelType.
Explicit
)
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 (8)
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 (1)
261
allChannels.Any(static c => c.Type is PackageChannelType.
Explicit
&& HasInstalledLocalBuildPackageSource(c))));
Aspire.Cli.Tests (15)
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 (4)
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 (4)
317
Assert.Equal(PackageChannelType.
Explicit
, 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);