Table of Contents

Enum RegistrationMode

Namespace
OpenSettings.Models
Assembly
OpenSettings.dll

Specifies how single settings file ( separate setting files should be configured its own setting or setting class ) can be registered and resolved within the service. Supports resolving via configuration options or as a singleton service.

[Flags]
public enum RegistrationMode

Fields

Both = Configure | Singleton

Settings can be resolved both through singleton instances and through configuration options interfaces such as IOptions<TOptions>, IOptionsSnapshot<TOptions> or IOptionsMonitor<TOptions>.

Configure = 1

Settings can be resolved through configuration options interfaces, such as IOptions<TOptions>, IOptionsSnapshot<TOptions> or IOptionsMonitor<TOptions>.

Singleton = 2

Settings can be resolved directly through its own class as a singleton instance.