using EntitlementDAL.DTOs; using EntitlementDAL.Enums; namespace EntitlementBLL.Interfaces; /// /// Every mutating method appends to LFEATUREFLAGAUDIT and evicts the "ent:flags" cache key /// BEFORE returning — see EntitlementBLL.Implementations.FeatureFlagService for the exact order. /// public interface IFeatureFlagService { Task ActivateKillSwitchAsync(int featureFlagId, string reason, int activatedByUserId, CancellationToken ct); Task LiftKillSwitchAsync(int featureFlagId, string reason, int userId, CancellationToken ct); Task UpdateRolloutAsync(int featureFlagId, RolloutTypeEnum rollout, int pct, CancellationToken ct); Task AddTargetAsync(int featureFlagId, FlagTargetDto dto, CancellationToken ct); Task RemoveTargetAsync(int flagTargetId, CancellationToken ct); }