SettingsStorage class¶
Defined in
Namespace: ReactiveMarbles.CacheDatabase.Settings.Core
Assembly: ReactiveMarbles.CacheDatabase.EncryptedSettings.dll
Full name: ReactiveMarbles.CacheDatabase.Settings.Core.SettingsStorage
Modifiers: public abstract
Summary¶
Settings Storage.
Applies to
netstandard2.0, netstandard2.0
Class hierarchy
classDiagram
class SettingsStorage
class ISettingsStorage {
<>
}
ISettingsStorage <|.. SettingsStorage
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. SettingsStorage
class IDisposable {
<>
}
IDisposable <|.. SettingsStorage
class IAsyncDisposable {
<>
}
IAsyncDisposable <|.. SettingsStorage
Implements: ISettingsStorage, INotifyPropertyChanged, IDisposable, IAsyncDisposable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SettingsStorage](# class. |
Methods¶
| Name | Summary |
|---|---|
| InitializeAsync | Loads every setting in this storage into the internal cache, or, if the value doesn't exist in the storage, initializes it with its default value. You dont HAVE to call this ... |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| DisposeAsync | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
| GetOrCreate | Gets the value for the specified key, or, if the value doesn't exist, saves the defaultValue and returns it. |
| OnPropertyChanged | Called when [property changed]. |
| SetOrCreate | Overwrites the existing value or creates a new settings entry. The value is serialized via the Json.Net serializer. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | Occurs when a property value changes. |