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

Interface IFeatureFlagRuntimeCatalog

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

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

Exposes the feature flags visible to the current runtime.

public interface IFeatureFlagRuntimeCatalog

Gets all feature flags visible to the current runtime.

IReadOnlyList<FeatureFlagDescriptor> FeatureFlags { get; }

IReadOnlyList<FeatureFlagDescriptor>

Gets one feature flag by its stable identifier.

FeatureFlagDescriptor? GetById(string featureFlagId)

featureFlagId string

The feature-flag identifier to resolve.

FeatureFlagDescriptor?

The matching feature flag, or null when it is not active.

Gets all module-owned feature flags contributed by the requested source module.

IReadOnlyList<FeatureFlagDescriptor> GetBySourceModule(string sourceModuleId)

sourceModuleId string

The source-module identifier to filter by.

IReadOnlyList<FeatureFlagDescriptor>

The matching feature flags, or an empty list when none were contributed.

Gets all feature flags that are disabled before targeting is applied.

IReadOnlyList<FeatureFlagDescriptor> GetDisabled()

IReadOnlyList<FeatureFlagDescriptor>

The disabled feature flags.

Gets all feature flags that are enabled before targeting is applied.

IReadOnlyList<FeatureFlagDescriptor> GetEnabled()

IReadOnlyList<FeatureFlagDescriptor>

The enabled feature flags.