Class IconSettingsService
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
The built-in IIconSettingsService: the live singleton is the read, the store is the record.
public sealed class IconSettingsService : IIconSettingsService
- Inheritance
-
IconSettingsService
- Implements
- Inherited Members
Remarks
Without an IIconSettingsStore the settings are still readable and still changeable — they simply do not survive a restart. That is the right behaviour for a host that registered no store: the runtime knob keeps working, and nothing pretends to persist.
Constructors
IconSettingsService(IconSettings, IIconSettingsStore)
public IconSettingsService(IconSettings settings, IIconSettingsStore store = null)
Parameters
settingsIconSettingsstoreIIconSettingsStore
Methods
GetAsync()
The settings currently in force on this instance.
public Task<IconSettingsState> GetAsync()
Returns
SaveAsync(IconSettingsState)
Store settings and apply them to this instance immediately.
public Task SaveAsync(IconSettingsState settings)
Parameters
settingsIconSettingsState
Returns
Remarks
Applied here as well as stored, so whoever made the change sees it at once rather than waiting
for a refresh — and on a single-instance host that means everywhere. Other instances re-read on
o.Blazor.IconSettingsRefreshInterval.