14 references to ShouldPersistChannelName
aspire (8)
Commands\InitCommand.cs (1)
731
return match?.
ShouldPersistChannelName
() is true ? match.Name : null;
Commands\NewCommand.cs (2)
569
var channelName = selectedChannel.
ShouldPersistChannelName
() ? selectedChannel.Name : null;
863
return match?.
ShouldPersistChannelName
() is true ? match.Name : null;
Packaging\PackageChannel.cs (2)
83
/// persisted for restore to succeed. This deliberately mirrors <see cref="
ShouldPersistChannelName
"/>:
88
ShouldPersistChannelName
() && Mappings is { Length: > 0 };
Projects\GuestAppHostProject.cs (1)
1930
var explicitChannelName = context.Channel.
ShouldPersistChannelName
() ? context.Channel.Name : null;
Projects\ProjectUpdater.cs (1)
500
: channel.
ShouldPersistChannelName
() ? channel.Name : null;
Templating\DotNetTemplateFactory.cs (1)
550
if (selectedTemplateDetails.Channel.
ShouldPersistChannelName
())
Aspire.Cli.Tests (6)
Packaging\PackageChannelTests.cs (6)
869
Assert.False(channel.
ShouldPersistChannelName
());
885
Assert.True(channel.
ShouldPersistChannelName
());
901
Assert.True(channel.
ShouldPersistChannelName
());
917
Assert.True(channel.
ShouldPersistChannelName
());
928
Assert.False(channel.
ShouldPersistChannelName
());
942
Assert.True(channel.
ShouldPersistChannelName
());