14 references to ShouldPersistChannelName
aspire (8)
Commands\InitCommand.cs (1)
769
return match?.
ShouldPersistChannelName
() is true ? match.Name : null;
Commands\NewCommand.cs (2)
567
var channelName = selectedChannel.
ShouldPersistChannelName
() ? selectedChannel.Name : null;
867
return match?.
ShouldPersistChannelName
() is true ? match.Name : null;
Packaging\PackageChannel.cs (2)
85
/// persisted for restore to succeed. This deliberately mirrors <see cref="
ShouldPersistChannelName
"/>:
90
ShouldPersistChannelName
() && Mappings is { Length: > 0 };
Projects\GuestAppHostProject.cs (1)
1934
var explicitChannelName = context.Channel.
ShouldPersistChannelName
() ? context.Channel.Name : null;
Projects\ProjectUpdater.cs (1)
544
: channel.
ShouldPersistChannelName
() ? channel.Name : null;
Templating\DotNetTemplateFactory.cs (1)
550
if (selectedTemplateDetails.Channel.
ShouldPersistChannelName
())
Aspire.Cli.Tests (6)
Packaging\PackageChannelTests.cs (6)
972
Assert.False(channel.
ShouldPersistChannelName
());
988
Assert.True(channel.
ShouldPersistChannelName
());
1004
Assert.True(channel.
ShouldPersistChannelName
());
1020
Assert.True(channel.
ShouldPersistChannelName
());
1031
Assert.False(channel.
ShouldPersistChannelName
());
1045
Assert.True(channel.
ShouldPersistChannelName
());