Class FeatureFlagEvaluationResult
Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll
Describes the result of evaluating a feature flag for a specific runtime context.
public sealed record FeatureFlagEvaluationResult : IEquatable<FeatureFlagEvaluationResult>Inheritance
Section titled “Inheritance”object ← FeatureFlagEvaluationResult
Implements
Section titled “Implements”IEquatable<FeatureFlagEvaluationResult>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”FeatureFlagEvaluationResult(string, bool, bool, bool, string, FeatureFlagSourceKind?, string?)
Section titled “ FeatureFlagEvaluationResult(string, bool, bool, bool, string, FeatureFlagSourceKind?, string?)”Describes the result of evaluating a feature flag for a specific runtime context.
public FeatureFlagEvaluationResult(string FeatureId, bool IsDefined, bool IsEnabled, bool Matched, string Reason, FeatureFlagSourceKind? SourceKind = null, string? SourceModuleId = null)Parameters
Section titled “Parameters”FeatureId string
The evaluated feature-flag identifier.
IsDefined bool
Indicates whether the feature flag exists in the active runtime.
IsEnabled bool
Indicates whether the feature flag resolved to enabled.
Matched bool
Indicates whether the supplied evaluation context matched the targeting constraints for the feature flag.
Reason string
The operator-facing explanation for the evaluation result.
SourceKind FeatureFlagSourceKind?
The ownership kind for the resolved feature flag when one exists.
SourceModuleId string?
The owning module identifier when the feature flag is module-owned.
Properties
Section titled “Properties”FeatureId
Section titled “ FeatureId”The evaluated feature-flag identifier.
public string FeatureId { get; init; }Property Value
Section titled “Property Value”IsDefined
Section titled “ IsDefined”Indicates whether the feature flag exists in the active runtime.
public bool IsDefined { get; init; }Property Value
Section titled “Property Value”IsEnabled
Section titled “ IsEnabled”Indicates whether the feature flag resolved to enabled.
public bool IsEnabled { get; init; }Property Value
Section titled “Property Value”Matched
Section titled “ Matched”Indicates whether the supplied evaluation context matched the targeting constraints for the feature flag.
public bool Matched { get; init; }Property Value
Section titled “Property Value”ProviderResults
Section titled “ ProviderResults”Gets the external provider evaluation results that participated in the final answer.
public IReadOnlyList<FeatureFlagProviderEvaluationResult> ProviderResults { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<FeatureFlagProviderEvaluationResult>
Reason
Section titled “ Reason”The operator-facing explanation for the evaluation result.
public string Reason { get; init; }Property Value
Section titled “Property Value”SourceKind
Section titled “ SourceKind”The ownership kind for the resolved feature flag when one exists.
public FeatureFlagSourceKind? SourceKind { get; init; }Property Value
Section titled “Property Value”SourceModuleId
Section titled “ SourceModuleId”The owning module identifier when the feature flag is module-owned.
public string? SourceModuleId { get; init; }