Interface ISettingsStore
Namespace: Uniform.Matrix.Hosting
Assembly: Uniform.Matrix.Hosting.dll
public interface ISettingsStore
Properties
|
Edit this page
View Source
Declaration
Property Value
Methods
|
Edit this page
View Source
Apply changes until the next start; a null value clears an applied change, so lower layers show again.
Declaration
void Apply(IReadOnlyDictionary<string, string?> changes)
Parameters
Exceptions
| Type |
Condition |
| IOException |
When the store cannot be reached.
|
|
Edit this page
View Source
Return which layer sets key: applied, command line, environment, a file name, or default.
Declaration
string GetSource(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
|
Edit this page
View Source
Return the current value of key, e.g. Ui:InlineImages, or null when only the built-in default applies.
Declaration
string? GetValue(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
|
Edit this page
View Source
Write changes into the settings file, keeping its other settings; a null value removes the setting. The changes are applied too.
Declaration
void Save(IReadOnlyDictionary<string, string?> changes)
Parameters
Exceptions
| Type |
Condition |
| IOException |
When the file cannot be written, or the store cannot be reached.
|