Table of Contents

Class IconSettingsRegistration

Namespace
Tharga.Team.Service
Assembly
Tharga.Team.Service.dll
public static class IconSettingsRegistration
Inheritance
IconSettingsRegistration
Inherited Members

Methods

AddThargaIconSettings(IServiceCollection)

Registers IIconSettingsService: the domain service, the audit decorator when audit is configured, and the ScopeProxy that enforces the system users:manage grant.

public static IServiceCollection AddThargaIconSettings(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

IServiceCollection

Remarks

The order of the three matters. The proxy is outermost, so an unauthorized call is refused before the decorator writes an entry claiming the change happened. The decorator sits inside it and records what was stored. Built by hand rather than through AddSystemService because that composes the proxy directly onto the implementation type, leaving nowhere for a decorator to sit.