Interface IFeatureFlagRuntimeCatalog
Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll
Exposes the feature flags visible to the current runtime.
public interface IFeatureFlagRuntimeCatalogProperties
Section titled “Properties”FeatureFlags
Section titled “ FeatureFlags”Gets all feature flags visible to the current runtime.
IReadOnlyList<FeatureFlagDescriptor> FeatureFlags { get; }Property Value
Section titled “Property Value”IReadOnlyList<FeatureFlagDescriptor>
Methods
Section titled “Methods”GetById(string)
Section titled “ GetById(string)”Gets one feature flag by its stable identifier.
FeatureFlagDescriptor? GetById(string featureFlagId)Parameters
Section titled “Parameters”featureFlagId string
The feature-flag identifier to resolve.
Returns
Section titled “Returns”The matching feature flag, or null when it is not active.
GetBySourceModule(string)
Section titled “ GetBySourceModule(string)”Gets all module-owned feature flags contributed by the requested source module.
IReadOnlyList<FeatureFlagDescriptor> GetBySourceModule(string sourceModuleId)Parameters
Section titled “Parameters”sourceModuleId string
The source-module identifier to filter by.
Returns
Section titled “Returns”IReadOnlyList<FeatureFlagDescriptor>
The matching feature flags, or an empty list when none were contributed.
GetDisabled()
Section titled “ GetDisabled()”Gets all feature flags that are disabled before targeting is applied.
IReadOnlyList<FeatureFlagDescriptor> GetDisabled()Returns
Section titled “Returns”IReadOnlyList<FeatureFlagDescriptor>
The disabled feature flags.
GetEnabled()
Section titled “ GetEnabled()”Gets all feature flags that are enabled before targeting is applied.
IReadOnlyList<FeatureFlagDescriptor> GetEnabled()Returns
Section titled “Returns”IReadOnlyList<FeatureFlagDescriptor>
The enabled feature flags.