Interface IFeatureToggle
Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll
Evaluates runtime feature flags against an optional evaluation context.
public interface IFeatureToggleMethods
Section titled “Methods”Evaluate(string, FeatureFlagEvaluationContext?)
Section titled “ Evaluate(string, FeatureFlagEvaluationContext?)”Evaluates the requested feature flag and returns a richer operator-facing result.
FeatureFlagEvaluationResult Evaluate(string featureFlagId, FeatureFlagEvaluationContext? context = null)Parameters
Section titled “Parameters”featureFlagId string
The stable feature-flag identifier to evaluate.
context FeatureFlagEvaluationContext?
The optional runtime context used for targeting evaluation.
Returns
Section titled “Returns”The full evaluation result.
IsEnabled(string, FeatureFlagEvaluationContext?)
Section titled “ IsEnabled(string, FeatureFlagEvaluationContext?)”Evaluates whether the requested feature flag is enabled for the supplied context.
bool IsEnabled(string featureFlagId, FeatureFlagEvaluationContext? context = null)Parameters
Section titled “Parameters”featureFlagId string
The stable feature-flag identifier to evaluate.
context FeatureFlagEvaluationContext?
The optional runtime context used for targeting evaluation.
Returns
Section titled “Returns”true when the feature flag resolves to enabled; otherwise false.