Interface IFeatureFlagQueryService
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):
- Default feature flags (lowest priority - base)
- AWS AppConfig (if configured)
- 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
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<Dictionary<string, bool>>
A dictionary of feature flag names to their enabled state.