Table of Contents

Interface IFeatureFlagQueryService

Namespace
SEBT.Portal.Kernel.Services
Assembly
SEBT.Portal.Kernel.dll

Service for querying feature flags with priority order.

public interface IFeatureFlagQueryService

Methods

GetFeatureFlagsAsync(CancellationToken)

Gets all configured feature flags as a dictionary. Checks sources in priority order (later sources override earlier ones):

  1. Default feature flags (lowest priority - base)
  2. AWS AppConfig (if configured)
  3. State-specific JSON files (appsettings.{State}.json) - highest priority FeatureManager provides any additional flags not defined in the above sources Only flags that are explicitly configured (enabled or disabled) are returned. Unknown flags and internal-only flags are not included in the response.
Task<Dictionary<string, bool>> GetFeatureFlagsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<Dictionary<string, bool>>

A dictionary of feature flag names to their enabled state.