ข้ามไปยังเนื้อหา

Interface IFeatureFlagProvider

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll

Evaluates Cephalon feature-flag provider bindings against external or provider-owned state.

public interface IFeatureFlagProvider

Implementations are expected to answer from cached or in-memory provider state rather than performing network I/O on the hot execution path.

Gets the stable provider identifier used by feature-flag bindings.

string ProviderId { get; }

string

Evaluate(FeatureFlagProviderBindingDescriptor, FeatureFlagDescriptor, FeatureFlagEvaluationContext?)

Section titled “ Evaluate(FeatureFlagProviderBindingDescriptor, FeatureFlagDescriptor, FeatureFlagEvaluationContext?)”

Evaluates one provider binding for the supplied Cephalon feature flag and runtime context.

FeatureFlagProviderEvaluationResult Evaluate(FeatureFlagProviderBindingDescriptor binding, FeatureFlagDescriptor featureFlag, FeatureFlagEvaluationContext? context = null)

binding FeatureFlagProviderBindingDescriptor

The provider binding attached to the Cephalon feature flag.

featureFlag FeatureFlagDescriptor

The owning Cephalon feature-flag descriptor.

context FeatureFlagEvaluationContext?

The optional runtime context used for evaluation.

FeatureFlagProviderEvaluationResult

The provider evaluation result.