Example #1
0
 public Task <Boolean> SetValueAsync <T>(String key, T value, ICryptKey crypt, IEnumerable <String> sections)
 {
     return(Config.SetValueAsync(key, value, crypt, sections));
 }
 protected ConfigPropertyBase(IPropertyConfigBase config, [NotNull] String key, ICryptKey cryptKey, ConfigPropertyOptions options, IEnumerable <String> sections)
 {
     Config   = config;
     Key      = key ?? throw new ArgumentNullException(nameof(key));
     CryptKey = cryptKey;
     Sections = sections.AsIImmutableList();
     Options  = options;
 }
Example #3
0
 protected internal ConfigProperty(IPropertyConfig config, [NotNull] String key, T defaultValue, Func <T, Boolean> validate, ICryptKey crypt, ConfigPropertyOptions options, TryConverter <String, T> converter, IEnumerable <String> sections)
     : base(config, key ?? throw new ArgumentNullException(nameof(key)), crypt, options, sections)
 {
     Config       = config ?? throw new ArgumentNullException(nameof(config));
     DefaultValue = defaultValue;
     Validate     = validate;
     Converter    = converter ?? ConvertUtils.TryConvert;
 }
Example #4
0
 public RamConfigBehavior(DictionaryTree <String, String> config, String path, ICryptKey crypt, ConfigOptions options = ConfigOptions.None)
     : base(path ?? "RAM", crypt, options)
 {
     Config = config;
 }
Example #5
0
 public RamConfigBehavior(String path, ICryptKey crypt, ConfigOptions options = ConfigOptions.None)
     : this(new DictionaryTree <String, String>(), path, crypt, options)
 {
 }
 public SqlConfigBehavior(String path, ICryptKey crypt, ConfigOptions options)
     : base(path, crypt, options)
 {
     throw new NotImplementedException();
 }