public OptimizelyForcedDecision this[OptimizelyDecisionContext context] { get { if (context != null && context.IsValid && ForcedDecisionsMap.TryGetValue(context.GetKey(), out OptimizelyForcedDecision flagForcedDecision)) { return(flagForcedDecision); } return(null); } set { if (context != null && context.FlagKey != null) { ForcedDecisionsMap[context.GetKey()] = value; } } }
public bool Remove(OptimizelyDecisionContext context) { return(ForcedDecisionsMap.Remove(context.GetKey())); }