Exemple #1
0
 private TomlTable LoadInternal(IConfigSource source, out IConfigStoreWithSource cfg)
 {
     cfg = this.stores.Single(c => c.CanHandleSource(source));
     return(cfg.Load());
 }
Exemple #2
0
 private static MergeConfigStore CreateMergeStore(IConfigStoreWithSource store)
 => new MergeConfigStore(new List <IConfigStoreWithSource>()
 {
     store
 });
Exemple #3
0
        public void Save(TomlTable table, IConfigSource source)
        {
            IConfigStoreWithSource cfg = this.stores.Single(c => c.CanHandleSource(source));

            cfg.Save(table);
        }