(ISettingsManager): new public interface.

This commit is contained in:
morkt
2018-01-11 18:38:33 +04:00
parent c1a6c69145
commit 21f2529e97
5 changed files with 61 additions and 6 deletions

View File

@@ -52,6 +52,23 @@ namespace GameRes
object Value { get; set; }
}
/// <summary>
/// Manage assembly settings during application session. Implementations of this interface are made
/// available to GameRes library by means of MEF.
/// </summary>
public interface ISettingsManager
{
/// <summary>
/// Called on application startup to check if settings need upgrading after assembly version change.
/// </summary>
void UpgradeSettings ();
/// <summary>
/// Called on application exit.
/// </summary>
void SaveSettings ();
}
public abstract class ResourceSettingBase : IResourceSetting
{
public string Name { get; set; }