10 implementations of IsFeatureEnabled
aspire (1)
Configuration\Features.cs (1)
11
public bool
IsFeatureEnabled
(string feature, bool defaultValue)
Aspire.Cli.Tests (9)
Commands\NewCommandTests.cs (1)
1664
public bool
IsFeatureEnabled
(string featureFlag, bool defaultValue)
Commands\RunCommandTests.cs (1)
1495
public bool
IsFeatureEnabled
(string featureName, bool defaultValue = false)
Configuration\KnownFeaturesTests.cs (1)
100
public bool
IsFeatureEnabled
(string featureFlag, bool defaultValue)
DotNetSdkInstallerTests.cs (1)
263
public bool
IsFeatureEnabled
(string featureName, bool defaultValue = false)
Packaging\NuGetConfigMergerSnapshotTests.cs (1)
35
public bool
IsFeatureEnabled
(string featureFlag, bool defaultValue) => defaultValue;
Packaging\PackagingServiceTests.cs (1)
29
public bool
IsFeatureEnabled
(string featureFlag, bool defaultValue)
Projects\DefaultLanguageDiscoveryTests.cs (1)
212
public bool
IsFeatureEnabled
(string featureName, bool defaultValue = false)
Projects\ProjectLocatorTests.cs (1)
720
public bool
IsFeatureEnabled
(string featureName, bool defaultValue = false)
Templating\DotNetTemplateFactoryTests.cs (1)
443
public bool
IsFeatureEnabled
(string featureFlag, bool defaultValue)
18 references to IsFeatureEnabled
aspire (13)
Commands\BaseCommand.cs (1)
54
if (UpdateNotificationsEnabled && features.
IsFeatureEnabled
(KnownFeatures.UpdateNotificationsEnabled, true))
Commands\RootCommand.cs (1)
236
if (featureFlags.
IsFeatureEnabled
(KnownFeatures.ExecCommandEnabled, false))
Commands\RunCommand.cs (1)
154
var watchModeEnabled = _features.
IsFeatureEnabled
(KnownFeatures.DefaultWatchEnabled, defaultValue: false) || (isExtensionHost && !startDebugSession);
DotNet\DotNetCliRunner.cs (1)
454
if (!features.
IsFeatureEnabled
(KnownFeatures.UpdateNotificationsEnabled, defaultValue: true))
KnownFeatures.cs (1)
121
return features.
IsFeatureEnabled
(StagingChannelEnabled, false)
NuGet\BundleNuGetPackageCache.cs (1)
227
if (isOfficialPackage && !_features.
IsFeatureEnabled
(KnownFeatures.ShowDeprecatedPackages, defaultValue: false))
NuGet\NuGetPackageCache.cs (1)
134
if (isOfficialPackage && !features.
IsFeatureEnabled
(KnownFeatures.ShowDeprecatedPackages, defaultValue: false))
NuGet\NuGetPackagePrefetcher.cs (1)
53
if (features.
IsFeatureEnabled
(KnownFeatures.UpdateNotificationsEnabled, true))
Projects\DefaultLanguageDiscovery.cs (1)
155
return features.
IsFeatureEnabled
(featureFlag, false);
Projects\DotNetAppHostProject.cs (1)
253
var watch = !isSingleFileAppHost && (_features.
IsFeatureEnabled
(KnownFeatures.DefaultWatchEnabled, defaultValue: false) || (isExtensionHost && !context.StartDebugSession));
Projects\GuestAppHostProject.cs (1)
423
var enableHotReload = _features.
IsFeatureEnabled
(KnownFeatures.DefaultWatchEnabled, defaultValue: false);
Templating\DotNetTemplateFactory.cs (2)
66
var showAllTemplates = features.
IsFeatureEnabled
(KnownFeatures.ShowAllTemplates, false);
78
var showAllTemplates = features.
IsFeatureEnabled
(KnownFeatures.ShowAllTemplates, false);
Aspire.Cli.Tests (5)
Commands\ConfigCommandTests.cs (5)
381
Assert.True(featureFlags.
IsFeatureEnabled
("testFeature", defaultValue: false));
399
Assert.False(featureFlags.
IsFeatureEnabled
("testFeature", defaultValue: true));
423
Assert.False(featureFlags.
IsFeatureEnabled
("testFeature", defaultValue: true));
460
Assert.True(featureFlags.
IsFeatureEnabled
(KnownFeatures.ShowDeprecatedPackages, defaultValue: false));
472
Assert.False(featureFlags.
IsFeatureEnabled
(KnownFeatures.ShowDeprecatedPackages, defaultValue: false));