Class AuditingIconSettingsServiceDecorator
Decorator that records changes to the site's icon settings. Reads pass through unlogged.
public class AuditingIconSettingsServiceDecorator : IIconSettingsService
- Inheritance
-
AuditingIconSettingsServiceDecorator
- Implements
- Inherited Members
Remarks
What changed is recorded, not just that something did. These settings are site-wide, so "avatars look different today" is a question somebody asks weeks later — and an entry saying only "settings saved" answers none of it. The metadata carries the values as stored.
Constructors
AuditingIconSettingsServiceDecorator(IIconSettingsService, CompositeAuditLogger, IHttpContextAccessor)
public AuditingIconSettingsServiceDecorator(IIconSettingsService inner, CompositeAuditLogger auditLogger, IHttpContextAccessor httpContextAccessor)
Parameters
innerIIconSettingsServiceauditLoggerCompositeAuditLoggerhttpContextAccessorIHttpContextAccessor
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.