/// <inheritdoc/> public bool IsEnabled(string featureName) { if (featureName is null) { throw new ArgumentNullException(nameof(featureName)); } return(FeatureDictionary.TryGetValue(featureName, out var featureFlag) && featureFlag.IsEnabled); }
public FeatureDefinitionContextBase() { Features = new FeatureDictionary(); }
/// <summary> /// Initializes a new instance of the <see cref="FeatureDefinitionContextBase"/> class. /// </summary> protected FeatureDefinitionContextBase() { Features = new FeatureDictionary(); }