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

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>

objectFeatureFlagEvaluationResult

IEquatable<FeatureFlagEvaluationResult>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

The evaluated feature-flag identifier.

public string FeatureId { get; init; }

string

Indicates whether the feature flag exists in the active runtime.

public bool IsDefined { get; init; }

bool

Indicates whether the feature flag resolved to enabled.

public bool IsEnabled { get; init; }

bool

Indicates whether the supplied evaluation context matched the targeting constraints for the feature flag.

public bool Matched { get; init; }

bool

Gets the external provider evaluation results that participated in the final answer.

public IReadOnlyList<FeatureFlagProviderEvaluationResult> ProviderResults { get; init; }

IReadOnlyList<FeatureFlagProviderEvaluationResult>

The operator-facing explanation for the evaluation result.

public string Reason { get; init; }

string

The ownership kind for the resolved feature flag when one exists.

public FeatureFlagSourceKind? SourceKind { get; init; }

FeatureFlagSourceKind?

The owning module identifier when the feature flag is module-owned.

public string? SourceModuleId { get; init; }

string?