Пример #1
0
 internal FlagChangedEventArgs(string key, JToken newValue, JToken oldValue, bool flagWasDeleted)
 {
     Key            = key;
     NewValue       = ImmutableJsonValue.FromSafeValue(newValue);
     OldValue       = ImmutableJsonValue.FromSafeValue(oldValue);
     FlagWasDeleted = flagWasDeleted;
 }
Пример #2
0
 /// <see cref="ILdClient.AllFlags()"/>
 public IDictionary <string, ImmutableJsonValue> AllFlags()
 {
     return(flagCacheManager.FlagsForUser(User)
            .ToDictionary(p => p.Key, p => ImmutableJsonValue.FromSafeValue(p.Value.value)));
 }