Class ConfigurationSetSwitchResult
Contains the completed result of one configuration-set switch request.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Hosting.Configuration.ConfigurationSets
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public sealed class ConfigurationSetSwitchResult
Properties
| Edit this page View SourceActiveValue
Gets the last value that was fully coordinated across all bindings. When IsConsistent is false, some participant sources may no longer correspond to this value until a later successful reconciliation.
Declaration
public string ActiveValue { get; }
Property Value
| Type | Description |
|---|---|
| string |
ConfigurationChanged
Gets whether at least one committed participant changed its effective configuration snapshot.
Declaration
public bool ConfigurationChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Exception
Gets the underlying unexpected participant exception, when available.
Declaration
public Exception? Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
FailedParticipantName
Gets the participant identity associated with a prepare/commit failure, when available.
Declaration
public string? FailedParticipantName { get; }
Property Value
| Type | Description |
|---|---|
| string |
FailureKind
Gets the classified failure kind, or None.
Declaration
public ConfigurationSetSwitchFailureKind FailureKind { get; }
Property Value
| Type | Description |
|---|---|
| ConfigurationSetSwitchFailureKind |
HasChanges
Gets whether the operation changed the logical set value, at least one participant source, or effective configuration data.
Declaration
public bool HasChanges { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsConsistent
Gets whether all bound participants are known to represent ActiveValue.
Declaration
public bool IsConsistent { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Gets the caller-defined set identity.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ParticipantResults
Gets the completed participant commits in binding order.
Declaration
public IReadOnlyList<ConfigurationSetParticipantSwitchResult> ParticipantResults { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<ConfigurationSetParticipantSwitchResult> |
Remarks
A participant that rejects during preparation has no commit result and is represented by FailedParticipantName and FailureKind instead.
PreviousValue
Gets the last fully coordinated value before the request.
Declaration
public string PreviousValue { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedValue
Gets the value requested by the caller.
Declaration
public string RequestedValue { get; }
Property Value
| Type | Description |
|---|---|
| string |
Sequence
Gets the monotonically increasing lifecycle sequence scoped to this coordinator.
Declaration
public long Sequence { get; }
Property Value
| Type | Description |
|---|---|
| long |
SourceChanged
Gets whether at least one committed participant selected a different source.
Declaration
public bool SourceChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Status
Gets the completed switch status.
Declaration
public ConfigurationSetSwitchStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| ConfigurationSetSwitchStatus |
Succeeded
Gets whether the requested set value became the fully coordinated active value.
Declaration
public bool Succeeded { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Timestamp
Gets the UTC timestamp at which the outcome completed.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
ValueChanged
Gets whether the last fully coordinated set value changed.
Declaration
public bool ValueChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |