public virtual void UpdateConfiguration(FeatureFlagConfiguration configuration, int version) { //todo: implement versioning if (version <= Version) { return; } Configuration = configuration; }
public void SetFlagState(string code, FeatureFlagConfiguration state, int version) { var flag = GetFeatureFlag(code); flag.UpdateConfiguration(state, version); }
public FeatureFlag(string id) : base(id) { Configuration = new FeatureFlagConfiguration(false); }