Class BehaviorFeatureDisabledException
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Behaviors
Assembly: Cephalon.Abstractions.dll
Thrown when a behavior declares one or more required feature flags and the active runtime evaluation context does not satisfy one of them.
public sealed class BehaviorFeatureDisabledException : Exception, ISerializableInheritance
Section titled “Inheritance”object ← Exception ← BehaviorFeatureDisabledException
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”Exception.GetBaseException(), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”BehaviorFeatureDisabledException(string, string, IReadOnlyList<string>, string, FeatureFlagSourceKind?, string?)
Section titled “ BehaviorFeatureDisabledException(string, string, IReadOnlyList<string>, string, FeatureFlagSourceKind?, string?)”Initializes a new instance of
public BehaviorFeatureDisabledException(string behaviorId, string featureFlagId, IReadOnlyList<string> requiredFeatureFlagIds, string reason, FeatureFlagSourceKind? sourceKind = null, string? sourceModuleId = null)Parameters
Section titled “Parameters”behaviorId string
The behavior identifier that was blocked.
featureFlagId string
The specific required feature flag that evaluated to disabled.
requiredFeatureFlagIds IReadOnlyList<string>
The full ordered set of required feature flags.
reason string
The evaluation reason returned by the feature-toggle runtime.
sourceKind FeatureFlagSourceKind?
The ownership kind of the resolved feature flag when one exists.
sourceModuleId string?
The owning module identifier when the resolved feature flag is module-owned.
Properties
Section titled “Properties”BehaviorId
Section titled “ BehaviorId”Gets the behavior identifier that was blocked.
public string BehaviorId { get; }Property Value
Section titled “Property Value”FeatureFlagId
Section titled “ FeatureFlagId”Gets the required feature flag that evaluated to disabled for the active runtime context.
public string FeatureFlagId { get; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”Gets the operator-facing evaluation reason that explained why the feature flag was not available for the current runtime context.
public string Reason { get; }Property Value
Section titled “Property Value”RequiredFeatureFlagIds
Section titled “ RequiredFeatureFlagIds”Gets the full ordered set of required feature flags declared by the behavior.
public IReadOnlyList<string> RequiredFeatureFlagIds { get; }Property Value
Section titled “Property Value”SourceKind
Section titled “ SourceKind”Gets the ownership kind of the resolved feature flag when one exists.
public FeatureFlagSourceKind? SourceKind { get; }Property Value
Section titled “Property Value”SourceModuleId
Section titled “ SourceModuleId”Gets the owning module identifier when the resolved feature flag is module-owned.
public string? SourceModuleId { get; }