11 writes to Features
aspire (1)
Configuration\AspireConfigFile.cs (1)
466config.Features = settings.Features;
Aspire.Cli.Tests (10)
Configuration\AspireConfigFileTests.cs (1)
641Features = new Dictionary<string, bool>
Configuration\KnownFeaturesTests.cs (2)
22config.Features = new Dictionary<string, bool> { [KnownFeatures.AppHostServerV2] = value }; 43config.Features = new Dictionary<string, bool>
Projects\GuestAppHostProjectTests.cs (3)
73Features = new() { [KnownFeatures.AppHostServerV2] = true } 126Features = new Dictionary<string, bool> 2199Features = new() { [KnownFeatures.AppHostServerV2] = true }
Projects\NativeAppHostServerProjectTests.cs (4)
32new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(enabled.FullName); 33new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = false } }.Save(disabled.FullName); 50new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path); 62new AspireConfigFile { Features = new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
22 references to Features
aspire (2)
KnownFeatures.cs (2)
43=> config?.Features is { } features && features.TryGetValue(AppHostServerV2, out var enabled) && enabled; 161return config.Features is { } projectFeatures
Aspire.Cli.Tests (20)
Commands\ConfigCommandTests.cs (2)
842Assert.NotNull(config?.Features); 843Assert.True(config.Features[featureName]);
Commands\TemplateSourceStartupTests.cs (2)
332Assert.NotNull(migrated.Features); 333Assert.False(migrated.Features["defaultWatchEnabled"]);
Configuration\AspireConfigFileTests.cs (9)
608Assert.NotNull(result.Features); 609Assert.True(result.Features["polyglotSupportEnabled"]); 610Assert.False(result.Features["showAllTemplates"]); 629Assert.NotNull(result.Features); 630Assert.True(result.Features["polyglotSupportEnabled"]); 631Assert.False(result.Features["showAllTemplates"]); 651Assert.NotNull(loaded?.Features); 652Assert.True(loaded.Features["polyglotSupportEnabled"]); 653Assert.False(loaded.Features["showAllTemplates"]);
Configuration\ConfigSourceServiceGitTests.cs (1)
472Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.Features);
Configuration\ConfigurationHelperTests.cs (4)
424Assert.NotNull(config?.Features); 425Assert.True(config.Features["polyglotSupportEnabled"]); 426Assert.False(config.Features["showAllTemplates"]); 587Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.Features);
Configuration\ConfigurationServiceTests.cs (2)
530Assert.NotNull(config?.Features); 531Assert.True(config.Features["polyglotSupportEnabled"]);