public PersistentSettings(bool global) { if (global) { FileSystemHelpers.EnsureDirectory(Path.GetDirectoryName(PersistentSettingsPath)); store = DiskBacked.Create <Dictionary <string, object> >(PersistentSettingsPath); } else { store = DiskBacked.Create <Dictionary <string, object> >(Path.Combine(Environment.CurrentDirectory, ".config")); } }
public static DiskBacked <T> Create <T>(string path) where T : new() { return(DiskBacked <T> .Create(path)); }
public static DiskBacked <T> CreateEncrypted <T>(string path, string encryptionReason = null) where T : new() { return(DiskBacked <T> .CreateEncrypted(path, encryptionReason)); }