14 references to ShouldPersistChannelName
aspire (8)
Commands\InitCommand.cs (1)
731return match?.ShouldPersistChannelName() is true ? match.Name : null;
Commands\NewCommand.cs (2)
569var channelName = selectedChannel.ShouldPersistChannelName() ? selectedChannel.Name : null; 863return 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)
1930var explicitChannelName = context.Channel.ShouldPersistChannelName() ? context.Channel.Name : null;
Projects\ProjectUpdater.cs (1)
500: channel.ShouldPersistChannelName() ? channel.Name : null;
Templating\DotNetTemplateFactory.cs (1)
550if (selectedTemplateDetails.Channel.ShouldPersistChannelName())
Aspire.Cli.Tests (6)
Packaging\PackageChannelTests.cs (6)
869Assert.False(channel.ShouldPersistChannelName()); 885Assert.True(channel.ShouldPersistChannelName()); 901Assert.True(channel.ShouldPersistChannelName()); 917Assert.True(channel.ShouldPersistChannelName()); 928Assert.False(channel.ShouldPersistChannelName()); 942Assert.True(channel.ShouldPersistChannelName());