21 writes to Channel
aspire (11)
Configuration\AspireConfigFile.cs (1)
465config.Channel = settings.Channel;
Program.cs (1)
204config.Channel = null;
Projects\GuestAppHostProject.cs (1)
1988config.Channel = explicitChannelName;
Projects\ProjectUpdater.cs (1)
543configToSave.Channel = targetChannel;
Scaffolding\ScaffoldingService.cs (1)
121config.Channel = context.Channel;
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
81config.Channel = inputs.Channel;
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
72config.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 (10)
Configuration\AspireConfigFileTests.cs (2)
239Channel = "daily" 273Channel = "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)
486config.Channel = PackageChannelNames.Local; 801config.Channel = PackageChannelNames.Local; 832config.Channel = PackageChannelNames.Local;
Projects\PrebuiltAppHostServerTests.cs (1)
4232config.Channel = PackageChannelNames.Staging;
35 references to Channel
aspire (12)
Commands\InitCommand.cs (1)
745return AspireConfigFile.Load(directory.FullName)?.Channel;
Packaging\IntegrationPackageSearchService.cs (1)
218return (AspireConfigFile.Load(appHostDirectory)?.Channel
Projects\DotNetBasedAppHostServerProject.cs (1)
271?? AspireConfigFile.Load(_appPath)?.Channel
Projects\GuestAppHostProject.cs (7)
353config.Channel, 598var (prepareSuccess, prepareOutput, channelName, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1419var (prepareSuccess, prepareOutput, _, needsCodeGen) = await PrepareAppHostServerAsync(appHostServerProject, sdkVersion, integrations, config.Channel, cancellationToken: cancellationToken); 1838var requestedChannel = context.RequestedChannel ?? config.Channel; 1935config.Channel is not null) || 1937!string.Equals(config.Channel, explicitChannelName, StringComparisons.CliInputOrOutput)); 2005: config.Channel;
Projects\PrebuiltAppHostServer.cs (1)
749var channelName = AspireConfigFile.Load(_appDirectoryPath)?.Channel
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
358var channel = config?.Channel;
Aspire.Cli.Tests (23)
Commands\NewCommandTemplateConfigPersistenceTests.cs (4)
337Assert.Equal(PrChannelName, csharpConfig.Channel); 348Assert.Equal(PrChannelName, config.Channel); 360Assert.Equal(PrChannelName, dotNetConfig.Channel); 391outputDirectory => AspireConfigFile.Load(outputDirectory)?.Channel);
Commands\NewCommandTests.cs (3)
191Assert.Equal(PackageChannelNames.Staging, config.Channel); 589Assert.Equal("pr-12345", config.Channel); 2062channelSeenByProject = config?.Channel;
Configuration\AspireConfigFileTests.cs (3)
39Assert.Equal("daily", result.Channel); 167Assert.Equal("stable", result.Channel); 228Assert.Null(result.Channel);
Configuration\ConfigurationServiceTests.cs (1)
554Assert.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)
217Assert.Equal(channelName == "stable" ? null : "daily", config.Channel); 344Assert.Equal("daily", aspireConfig.Channel);
Projects\ProjectUpdaterTests.cs (1)
981Assert.Null(updatedConfig.Channel);
Scaffolding\ChannelReseedTests.cs (1)
69Assert.Equal(expectedPersistedChannel, reloaded.Channel);