Class SwitchableJsonRegistrationOptions
Shared registration options for one or more switchable JSON configuration sources.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.SwitchableJson
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public sealed class SwitchableJsonRegistrationOptions
Properties
| Edit this page View SourceCandidatePreparation
Gets or initializes the reusable candidate preparation applied after JSON parsing and before provider state is committed.
Declaration
public JsonConfigurationCandidatePreparation? CandidatePreparation { get; init; }
Property Value
| Type | Description |
|---|---|
| JsonConfigurationCandidatePreparation |
Remarks
Use Compose(params IJsonConfigurationSourcePreparation[]) when several preparation steps should behave as one bundle.
Optional
Gets or initializes whether a missing active source is treated as empty by framework-driven loads.
Declaration
public bool Optional { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
ReloadDelayMilliseconds
Gets or initializes the debounce delay for active-source file notifications.
Declaration
public int ReloadDelayMilliseconds { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
ReloadOnChange
Gets or initializes whether each active JSON source is watched independently for physical changes.
Declaration
public bool ReloadOnChange { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
RuntimeFailurePolicy
Gets or initializes the runtime failure policy used by each registered switchable JSON source.
Declaration
public SwitchableJsonRuntimeFailurePolicy RuntimeFailurePolicy { get; init; }
Property Value
| Type | Description |
|---|---|
| SwitchableJsonRuntimeFailurePolicy |
ValueProtection
Gets or initializes startup protection for selected values in existing JSON files.
Declaration
public JsonConfigurationValueProtection? ValueProtection { get; init; }
Property Value
| Type | Description |
|---|---|
| JsonConfigurationValueProtection |
Remarks
Matching clear-text values are encoded once before provider registration. The corresponding decoder always runs before CandidatePreparation so application-owned preparation observes clear text.