Example #1
0
 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;
         }
     }
 }
Example #2
0
 public void RemoveAll()
 {
     ForcedDecisionsMap.Clear();
 }
Example #3
0
 public bool Remove(OptimizelyDecisionContext context)
 {
     return(ForcedDecisionsMap.Remove(context.GetKey()));
 }