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