Interface IJsonConfigurationSourcePreparation
Prepares one isolated JSON configuration snapshot before it is published by a configuration provider.
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.SwitchableJson
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public interface IJsonConfigurationSourcePreparation
Remarks
Implementations may inspect, validate or mutate only the candidate Values during the current Prepare(JsonConfigurationSourcePreparationContext) call. They must not publish configuration changes, select another source or mutate external runtime state. Implementations may be invoked repeatedly or concurrently and must therefore be safe for concurrent use. Throwing rejects the candidate before provider state is committed. Preparations execute in registration order. Owners detach the prepared values before publication, so retaining and later mutating the supplied dictionary has no effect on published configuration state. A candidate may still be discarded as stale if owner state changes while preparation runs.
Methods
| Edit this page View SourcePrepare(JsonConfigurationSourcePreparationContext)
Prepares the isolated candidate snapshot.
Declaration
void Prepare(JsonConfigurationSourcePreparationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonConfigurationSourcePreparationContext | context | Candidate source path and mutable isolated configuration values. |