Multiprocotol Terminalprogram (BAT)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MultiTerm/Common/AppSettings/IAppSettingsProvider.cs

29 lines
792 B

using Common.Logging;
namespace Common.AppSettings;
public interface IAppSettingsProvider
{
/// <summary>
/// Any internal event inside of the App Settings Provider.
/// </summary>
event EventHandler<LogEntry>? LogWorthyEvent;
/// <summary>
/// Retrieves the app settings from the persistant location and loads them into memory.
/// Loading settings will override the currently stored settings in the memory.
/// </summary>
void Load();
/// <summary>
/// Saves the app settings to the persistant location.
/// </summary>
void Save();
bool WriteSetting(string key, string value);
bool TryReadSetting(string key, out string value);
bool TryReadSettingOrAddDefault(string key, out string value, string defaultValue);
}