Class SwitchableJsonSwitchResult
Contains the completed outcome of a manual runtime source switch.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.SwitchableJson
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public sealed class SwitchableJsonSwitchResult
Properties
| Edit this page View SourceConfigurationChanged
Gets whether the provider's effective key/value snapshot changed.
Declaration
public bool ConfigurationChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
CurrentSourcePath
Gets the source path active after the request completed.
Declaration
public string CurrentSourcePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Exception
Gets the underlying failure exception for rejected switches, when available.
Declaration
public Exception? Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
FailureKind
Gets the classified failure kind, or None.
Declaration
public SwitchableJsonFailureKind FailureKind { get; }
Property Value
| Type | Description |
|---|---|
| SwitchableJsonFailureKind |
Name
Gets the caller-defined provider identity.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
PreviousSourcePath
Gets the source path that was active before the request.
Declaration
public string PreviousSourcePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedSourcePath
Gets the normalized source path requested by the caller.
Declaration
public string RequestedSourcePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Sequence
Gets the monotonically increasing lifecycle sequence assigned by this runtime when the outcome committed.
Declaration
public long Sequence { get; }
Property Value
| Type | Description |
|---|---|
| long |
Remarks
Notification callbacks intentionally run outside the provider state lock and may therefore arrive out of callback order under concurrency. Consumers that maintain administrative state can compare this sequence instead of callback arrival time. The sequence is scoped to one switchable runtime handle and is not a global process identifier.
SourceChanged
Gets whether the active source path changed.
Declaration
public bool SourceChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Status
Gets the completed switch status.
Declaration
public SwitchableJsonSwitchStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| SwitchableJsonSwitchStatus |
Succeeded
Gets whether the request completed without candidate rejection.
Declaration
public bool Succeeded { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Timestamp
Gets the UTC timestamp at which the outcome was completed.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |