예제 #1
0
 public Task <Boolean> SetValueAsync <T>(String key, T value, ICryptKey crypt, IEnumerable <String> sections)
 {
     return(Config.SetValueAsync(key, value, crypt, sections));
 }
예제 #2
0
 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;
 }
예제 #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;
 }
예제 #4
0
 public RamConfigBehavior(DictionaryTree <String, String> config, String path, ICryptKey crypt, ConfigOptions options = ConfigOptions.None)
     : base(path ?? "RAM", crypt, options)
 {
     Config = config;
 }
예제 #5
0
 public RamConfigBehavior(String path, ICryptKey crypt, ConfigOptions options = ConfigOptions.None)
     : this(new DictionaryTree <String, String>(), path, crypt, options)
 {
 }
예제 #6
0
 public SqlConfigBehavior(String path, ICryptKey crypt, ConfigOptions options)
     : base(path, crypt, options)
 {
     throw new NotImplementedException();
 }