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