Class SwitchableJsonConfigurationEventArgs
Provides source lifecycle information independently of the normal IConfiguration reload channel.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.SwitchableJson
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public sealed class SwitchableJsonConfigurationEventArgs : EventArgs
Properties
| Edit this page View SourceConfigurationChanged
Gets whether the effective key/value snapshot changed.
Declaration
public bool ConfigurationChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
CurrentSourcePath
Gets the active source path after the operation.
Declaration
public string CurrentSourcePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Exception
Gets the underlying failure exception for rejected operations, 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 |
Kind
Gets the lifecycle event kind.
Declaration
public SwitchableJsonConfigurationEventKind Kind { get; }
Property Value
| Type | Description |
|---|---|
| SwitchableJsonConfigurationEventKind |
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 operation.
Declaration
public string PreviousSourcePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedSourcePath
Gets the source path involved in the operation. For active-source reloads this equals the current source path.
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
Event callbacks can be delivered out of callback order when concurrent operations finish notification on different threads. A larger sequence always represents a later lifecycle outcome for the same runtime handle.
SourceChanged
Gets whether the active source identity changed.
Declaration
public bool SourceChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Timestamp
Gets the UTC timestamp at which the lifecycle outcome completed.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |