/// <summary> /// Checks if given feature is enabled. /// This should be used for boolean-value features. /// </summary> /// <param name="featureChecker"><see cref="IFeatureChecker"/> instance</param> /// <param name="featureName">Unique feature name</param> /// <returns>True, if current feature's value is "true".</returns> public static async Task <bool> IsEnabledAsync(this IFeatureChecker featureChecker, string featureName) { return(string.Equals(await featureChecker.ReadValueAsync(featureName), "true", StringComparison.InvariantCultureIgnoreCase)); }