14 references to ShouldPersistChannelName
aspire (8)
Commands\InitCommand.cs (1)
690return match?.ShouldPersistChannelName() is true ? match.Name : null;
Commands\NewCommand.cs (2)
476var channelName = selectedChannel.ShouldPersistChannelName() ? selectedChannel.Name : null; 647return match?.ShouldPersistChannelName() is true ? match.Name : null;
Packaging\PackageChannel.cs (2)
83/// persisted for restore to succeed. This deliberately mirrors <see cref="ShouldPersistChannelName"/>: 88ShouldPersistChannelName() && Mappings is { Length: > 0 };
Projects\GuestAppHostProject.cs (1)
1498var explicitChannelName = context.Channel.ShouldPersistChannelName() ? context.Channel.Name : null;
Projects\ProjectUpdater.cs (1)
238if (channel.ShouldPersistChannelName() && projectFile.Directory is { } projectDirectory)
Templating\DotNetTemplateFactory.cs (1)
545if (selectedTemplateDetails.Channel.ShouldPersistChannelName())
Aspire.Cli.Tests (6)
Packaging\PackageChannelTests.cs (6)
818Assert.False(channel.ShouldPersistChannelName()); 834Assert.True(channel.ShouldPersistChannelName()); 850Assert.True(channel.ShouldPersistChannelName()); 866Assert.True(channel.ShouldPersistChannelName()); 877Assert.False(channel.ShouldPersistChannelName()); 891Assert.True(channel.ShouldPersistChannelName());