8 implementations of IsFeatureEnabled
aspire (1)
Configuration\Features.cs (1)
10public bool IsFeatureEnabled(string feature, bool defaultValue)
Aspire.Cli.Tests (7)
DotNetSdkInstallerTests.cs (2)
386public bool IsFeatureEnabled(string featureName, bool defaultValue = false) 402public bool IsFeatureEnabled(string featureName, bool defaultValue = false)
Packaging\NuGetConfigMergerSnapshotTests.cs (1)
35public bool IsFeatureEnabled(string featureFlag, bool defaultValue) => defaultValue;
Packaging\PackagingServiceTests.cs (1)
29public bool IsFeatureEnabled(string featureFlag, bool defaultValue)
Projects\ProjectLocatorTests.cs (1)
674public bool IsFeatureEnabled(string featureName, bool defaultValue = false)
Templating\DotNetTemplateFactoryTests.cs (1)
397public bool IsFeatureEnabled(string featureFlag, bool defaultValue)
Utils\SdkInstallHelperTests.cs (1)
31public bool IsFeatureEnabled(string featureName, bool defaultValue = false)
31 references to IsFeatureEnabled
aspire (25)
Commands\BaseCommand.cs (1)
40if (UpdateNotificationsEnabled && features.IsFeatureEnabled(KnownFeatures.UpdateNotificationsEnabled, true))
Commands\InitCommand.cs (3)
108var isStagingEnabled = features.IsFeatureEnabled(KnownFeatures.StagingChannelEnabled, false); 119if (features.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false)) 134if (_features.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false))
Commands\NewCommand.cs (3)
108var isStagingEnabled = _features.IsFeatureEnabled(KnownFeatures.StagingChannelEnabled, false); 119if (_features.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false)) 158if (_features.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false))
Commands\RootCommand.cs (2)
209if (featureFlags.IsFeatureEnabled(KnownFeatures.ExecCommandEnabled, false)) 214if (featureFlags.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false))
Commands\RunCommand.cs (2)
156var runningInstanceDetectionEnabled = _features.IsFeatureEnabled(KnownFeatures.RunningInstanceDetectionEnabled, defaultValue: true); 644var runningInstanceDetectionEnabled = _features.IsFeatureEnabled(KnownFeatures.RunningInstanceDetectionEnabled, defaultValue: true);
Commands\UpdateCommand.cs (1)
72var isStagingEnabled = _features.IsFeatureEnabled(KnownFeatures.StagingChannelEnabled, false);
DotNet\DotNetCliExecutionFactory.cs (1)
76if (features.IsFeatureEnabled(KnownFeatures.OrphanDetectionWithTimestampEnabled, true))
DotNet\DotNetCliRunner.cs (3)
425if (!features.IsFeatureEnabled(KnownFeatures.UpdateNotificationsEnabled, defaultValue: true)) 444if (features.IsFeatureEnabled(KnownFeatures.DotNetSdkInstallationEnabled, true)) 881bool cacheEnabled = useCache && features.IsFeatureEnabled(KnownFeatures.PackageSearchDiskCachingEnabled, defaultValue: true);
DotNet\DotNetSdkInstaller.cs (1)
51if (!features.IsFeatureEnabled(KnownFeatures.MinimumSdkCheckEnabled, true))
NuGet\NuGetPackageCache.cs (1)
134if (isOfficialPackage && !features.IsFeatureEnabled(KnownFeatures.ShowDeprecatedPackages, defaultValue: false))
NuGet\NuGetPackagePrefetcher.cs (1)
64if (features.IsFeatureEnabled(KnownFeatures.UpdateNotificationsEnabled, true))
Packaging\PackagingService.cs (1)
57if (features.IsFeatureEnabled(KnownFeatures.StagingChannelEnabled, false))
Projects\AppHostProjectFactory.cs (1)
52!_features.IsFeatureEnabled(KnownFeatures.PolyglotSupportEnabled, false))
Projects\DotNetAppHostProject.cs (1)
226var watch = !isSingleFileAppHost && (_features.IsFeatureEnabled(KnownFeatures.DefaultWatchEnabled, defaultValue: false) || (isExtensionHost && !context.StartDebugSession));
Projects\GuestAppHostProject.cs (1)
341var enableHotReload = _features.IsFeatureEnabled(KnownFeatures.DefaultWatchEnabled, defaultValue: false);
Templating\DotNetTemplateFactory.cs (1)
53var showAllTemplates = features.IsFeatureEnabled(KnownFeatures.ShowAllTemplates, false);
Utils\SdkInstallHelper.cs (1)
80var isFeatureEnabled = features.IsFeatureEnabled(KnownFeatures.DotNetSdkInstallationEnabled, defaultValue: false);
Aspire.Cli.Tests (6)
Commands\ConfigCommandTests.cs (5)
329Assert.True(featureFlags.IsFeatureEnabled("testFeature", defaultValue: false)); 347Assert.False(featureFlags.IsFeatureEnabled("testFeature", defaultValue: true)); 371Assert.False(featureFlags.IsFeatureEnabled("testFeature", defaultValue: true)); 408Assert.True(featureFlags.IsFeatureEnabled(KnownFeatures.ShowDeprecatedPackages, defaultValue: false)); 420Assert.False(featureFlags.IsFeatureEnabled(KnownFeatures.ShowDeprecatedPackages, defaultValue: false));
Commands\RunCommandTests.cs (1)
1201var isEnabled = features.IsFeatureEnabled(KnownFeatures.RunningInstanceDetectionEnabled, defaultValue: true);