22 writes to Channel
aspire (11)
Configuration\AspireConfigFile.cs (1)
483config.Channel = settings.Channel;
Program.cs (1)
204config.Channel = null;
Projects\GuestAppHostProject.cs (1)
1992config.Channel = explicitChannelName;
Projects\ProjectUpdater.cs (1)
587configToSave.Channel = targetChannel;
Scaffolding\ScaffoldingService.cs (1)
120config.Channel = context.Channel;
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
81config.Channel = inputs.Channel;
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
85config.Channel = inputs.Channel;
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
73config.Channel = inputs.Channel;
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
86config.Channel = inputs.Channel;
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
71config.Channel = inputs.Channel;
Templating\DotNetTemplateFactory.cs (1)
553config.Channel = selectedTemplateDetails.Channel.Name;
Aspire.Cli.Tests (11)
Configuration\AspireConfigFileTests.cs (3)
124config.Channel = "daily"; 298Channel = "daily" 332Channel = "daily"
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (2)
49config.Channel = "staging"; 94config.Channel = "staging";
Configuration\PrebuiltAppHostServerChannelResolutionTests.cs (2)
40config.Channel = "staging"; 84config.Channel = "staging";
Packaging\PackageChannelTests.cs (3)
589config.Channel = PackageChannelNames.Local; 904config.Channel = PackageChannelNames.Local; 935config.Channel = PackageChannelNames.Local;
Projects\PrebuiltAppHostServerTests.cs (1)
4352config.Channel = PackageChannelNames.Staging;
35 references to Channel
aspire (12)
Commands\InitCommand.cs (1)
783return AspireConfigFile.Load(directory.FullName)?.Channel;
Packaging\IntegrationPackageSearchService.cs (1)
260return (AspireConfigFile.Load(appHostDirectory)?.Channel
Projects\DotNetBasedAppHostServerProject.cs (1)
274?? AspireConfigFile.Load(_appPath)?.Channel
Projects\GuestAppHostProject.cs (7)
353config.Channel, 598var (prepareSuccess, prepareOutput, channelName, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1423var (prepareSuccess, prepareOutput, _, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1842var requestedChannel = context.RequestedChannel ?? config.Channel; 1939config.Channel is not null) || 1941!string.Equals(config.Channel, explicitChannelName, StringComparisons.CliInputOrOutput)); 2009: config.Channel;
Projects\PrebuiltAppHostServer.cs (1)
751var channelName = AspireConfigFile.Load(_appDirectoryPath)?.Channel
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
358var channel = config?.Channel;
Aspire.Cli.Tests (23)
Commands\NewCommandTemplateConfigPersistenceTests.cs (4)
338Assert.Equal(PrChannelName, csharpConfig.Channel); 349Assert.Equal(PrChannelName, config.Channel); 361Assert.Equal(PrChannelName, dotNetConfig.Channel); 423outputDirectory => AspireConfigFile.Load(outputDirectory)?.Channel);
Commands\NewCommandTests.cs (3)
191Assert.Equal(PackageChannelNames.Staging, config.Channel); 589Assert.Equal("pr-12345", config.Channel); 2158channelSeenByProject = config?.Channel;
Configuration\AspireConfigFileTests.cs (3)
54Assert.Equal("daily", result.Channel); 226Assert.Equal("stable", result.Channel); 287Assert.Null(result.Channel);
Configuration\ConfigurationServiceTests.cs (1)
800Assert.Equal("true", config.Channel);
Projects\GuestAppHostProjectTests.cs (8)
1176Assert.Null(reloaded.Channel); 1533Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 1687Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 1744Assert.Null(reloaded.Channel); 1805Assert.Null(reloaded.Channel); 1862Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 1909Assert.Equal(PackageChannelNames.Staging, reloaded.Channel); 1983Assert.Equal(seededChannel, reloaded.Channel);
Projects\ProjectUpdaterNuGetConfigurationTests.cs (2)
262Assert.Equal(channelName == "stable" ? null : "daily", config.Channel); 499Assert.Equal("daily", aspireConfig.Channel);
Projects\ProjectUpdaterTests.cs (1)
985Assert.Null(updatedConfig.Channel);
Scaffolding\ChannelReseedTests.cs (1)
69Assert.Equal(expectedPersistedChannel, reloaded.Channel);