Interface IConfigurationSetManager
Process-wide control-plane facade for inspecting and switching registered configuration sets.
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.ConfigurationSets
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public interface IConfigurationSetManager
Remarks
This service is registered automatically when the first configuration set is added. It is intentionally persistence-neutral: TrySwitchRuntime(string, string, out ConfigurationSetSwitchResult?) performs an ephemeral runtime switch and returns only after the coordinator has completed the request. Callers that need persistent desired state should use IConfigurationSetDesiredStateStore instead. The runtime API remains synchronous by design because the underlying IConfigurationProvider and local JSON file operations are synchronous; an asynchronous wrapper would not make the configuration work itself asynchronous.
Methods
| Edit this page View SourceGetStatus()
Captures immutable runtime snapshots of every registered configuration set in registration order.
Declaration
IReadOnlyList<ConfigurationSetStatus> GetStatus()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<ConfigurationSetStatus> |
TryGetStatus(string, out ConfigurationSetStatus?)
Attempts to capture the runtime status of one named configuration set.
Declaration
bool TryGetStatus(string setName, out ConfigurationSetStatus? status)
Parameters
| Type | Name | Description |
|---|---|---|
| string | setName | |
| ConfigurationSetStatus | status |
Returns
| Type | Description |
|---|---|
| bool |
TrySwitchRuntime(string, string, out ConfigurationSetSwitchResult?)
Attempts an ephemeral runtime switch of one named configuration set and waits for the complete coordinated outcome.
Declaration
bool TrySwitchRuntime(string setName, string value, out ConfigurationSetSwitchResult? result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | setName | Registered configuration-set name. |
| string | value | Allowed value to request. |
| ConfigurationSetSwitchResult | result | Completed coordinator result when the set exists; otherwise null. A non-null rejected result distinguishes a known set whose switch failed from an unknown set name. |
Returns
| Type | Description |
|---|---|
| bool | true when the requested value is the fully coordinated active value after the call; otherwise false. |