|
|
@@ -18,6 +18,20 @@ namespace InABox.Configuration
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static class UserConfiguration
|
|
|
+ {
|
|
|
+ public static T Load<T>(bool useCache = true, string section = "")
|
|
|
+ where T : IUserConfigurationSettings, new()
|
|
|
+ {
|
|
|
+ return new UserConfiguration<T>(section).Load(useCache: useCache);
|
|
|
+ }
|
|
|
+ public static void Save<T>(T obj, string section = "")
|
|
|
+ where T : IUserConfigurationSettings, new()
|
|
|
+ {
|
|
|
+ new UserConfiguration<T>(section).Save(obj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
[UserTracking(false)]
|
|
|
[Unrecoverable]
|
|
|
public class UserSettings : Entity, IPersistent, IRemotable, ILicense<CoreLicense>
|