|
|
@@ -11,6 +11,20 @@ namespace InABox.Configuration
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+ public static class LocalConfiguration
|
|
|
+ {
|
|
|
+ public static T Load<T>(bool useCache = true, string section = "")
|
|
|
+ where T : ILocalConfigurationSettings, new()
|
|
|
+ {
|
|
|
+ return new LocalConfiguration<T>(section).Load(useCache: useCache);
|
|
|
+ }
|
|
|
+ public static void Save<T>(T obj, string section = "")
|
|
|
+ where T : ILocalConfigurationSettings, new()
|
|
|
+ {
|
|
|
+ new LocalConfiguration<T>(section).Save(obj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public class LocalConfiguration<T> : Configuration<T>, IDisposable
|
|
|
where T : ILocalConfigurationSettings, new()
|
|
|
{
|