14 references to ShouldPersistChannelName
aspire (8)
Commands\InitCommand.cs (1)
690
return match?.
ShouldPersistChannelName
() is true ? match.Name : null;
Commands\NewCommand.cs (2)
476
var channelName = selectedChannel.
ShouldPersistChannelName
() ? selectedChannel.Name : null;
647
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)
1498
var explicitChannelName = context.Channel.
ShouldPersistChannelName
() ? context.Channel.Name : null;
Projects\ProjectUpdater.cs (1)
238
if (channel.
ShouldPersistChannelName
() && projectFile.Directory is { } projectDirectory)
Templating\DotNetTemplateFactory.cs (1)
545
if (selectedTemplateDetails.Channel.
ShouldPersistChannelName
())
Aspire.Cli.Tests (6)
Packaging\PackageChannelTests.cs (6)
818
Assert.False(channel.
ShouldPersistChannelName
());
834
Assert.True(channel.
ShouldPersistChannelName
());
850
Assert.True(channel.
ShouldPersistChannelName
());
866
Assert.True(channel.
ShouldPersistChannelName
());
877
Assert.False(channel.
ShouldPersistChannelName
());
891
Assert.True(channel.
ShouldPersistChannelName
());