コード例 #1
0
ファイル: FeatureManager.cs プロジェクト: Morebis-GIT/CI
        /// <inheritdoc/>
        public bool IsEnabled(string featureName)
        {
            if (featureName is null)
            {
                throw new ArgumentNullException(nameof(featureName));
            }

            return(FeatureDictionary.TryGetValue(featureName, out var featureFlag) && featureFlag.IsEnabled);
        }
コード例 #2
0
 public FeatureDefinitionContextBase()
 {
     Features = new FeatureDictionary();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureDefinitionContextBase"/> class.
 /// </summary>
 protected FeatureDefinitionContextBase()
 {
     Features = new FeatureDictionary();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureDefinitionContextBase"/> class.
 /// </summary>
 protected FeatureDefinitionContextBase()
 {
     Features = new FeatureDictionary();
 }