Class LiabilityHandshakeAcknowledgment
- Namespace
- AsiBackbone.Core.Handshakes
- Assembly
- AsiBackbone.Core.dll
Represents a framework-neutral acknowledgment response for a liability or responsibility handshake.
public sealed class LiabilityHandshakeAcknowledgment
- Inheritance
-
LiabilityHandshakeAcknowledgment
- Inherited Members
Properties
Acknowledged
Gets a value indicating whether the required acknowledgment was accepted.
public bool Acknowledged { get; }
Property Value
AcknowledgmentCode
Gets the acknowledgment code accepted or rejected by the actor.
public string AcknowledgmentCode { get; }
Property Value
AcknowledgmentId
Gets the stable acknowledgment identifier.
public string AcknowledgmentId { get; }
Property Value
ActorDisplayName
Gets the optional display name or label associated with the actor.
public string? ActorDisplayName { get; }
Property Value
ActorId
Gets the stable actor identifier associated with the acknowledgment.
public string ActorId { get; }
Property Value
ActorType
Gets the actor type associated with the acknowledgment.
public AsiBackboneActorType ActorType { get; }
Property Value
CorrelationId
Gets the correlation identifier associated with the acknowledgment, when supplied by the host.
public string? CorrelationId { get; }
Property Value
HandshakeId
Gets the handshake identifier associated with the acknowledgment.
public string HandshakeId { get; }
Property Value
HasMetadata
Gets a value indicating whether this acknowledgment contains metadata.
public bool HasMetadata { get; }
Property Value
Metadata
Gets additional framework-neutral acknowledgment metadata supplied by the host.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
OccurredUtc
Gets the UTC timestamp when the acknowledgment response occurred.
public DateTimeOffset OccurredUtc { get; }
Property Value
Rejected
Gets a value indicating whether the required acknowledgment was rejected.
public bool Rejected { get; }
Property Value
SchemaVersion
Gets the schema version for the serialized handshake acknowledgment shape.
public string SchemaVersion { get; }
Property Value
TraceId
Gets the trace identifier associated with the acknowledgment, when supplied by the host.
public string? TraceId { get; }
Property Value
Methods
Accept(LiabilityHandshakeRequest, IAsiBackboneActorContext, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates an accepted acknowledgment response for a liability or responsibility handshake.
public static LiabilityHandshakeAcknowledgment Accept(LiabilityHandshakeRequest request, IAsiBackboneActorContext actor, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestLiabilityHandshakeRequestThe handshake request being acknowledged.
actorIAsiBackboneActorContextThe actor accepting the handshake.
acknowledgmentIdstringOptional acknowledgment identifier. When omitted, a new identifier is generated.
occurredUtcDateTimeOffset?Optional response timestamp. When omitted, the current UTC timestamp is used.
metadataIReadOnlyDictionary<string, string>Optional host-provided metadata.
schemaVersionstringOptional schema version for serialized or persisted acknowledgment records.
Returns
- LiabilityHandshakeAcknowledgment
An accepted liability handshake acknowledgment response.
Create(LiabilityHandshakeRequest, IAsiBackboneActorContext, bool, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates an acknowledgment response for a liability or responsibility handshake.
public static LiabilityHandshakeAcknowledgment Create(LiabilityHandshakeRequest request, IAsiBackboneActorContext actor, bool acknowledged, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestLiabilityHandshakeRequestThe handshake request being acknowledged.
actorIAsiBackboneActorContextThe actor responding to the handshake.
acknowledgedboolWhether the actor accepted the required acknowledgment.
acknowledgmentIdstringOptional acknowledgment identifier. When omitted, a new identifier is generated.
occurredUtcDateTimeOffset?Optional response timestamp. When omitted, the current UTC timestamp is used.
metadataIReadOnlyDictionary<string, string>Optional host-provided metadata.
schemaVersionstringOptional schema version for serialized or persisted acknowledgment records.
Returns
- LiabilityHandshakeAcknowledgment
A liability handshake acknowledgment response.
Reject(LiabilityHandshakeRequest, IAsiBackboneActorContext, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates a rejected acknowledgment response for a liability or responsibility handshake.
public static LiabilityHandshakeAcknowledgment Reject(LiabilityHandshakeRequest request, IAsiBackboneActorContext actor, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestLiabilityHandshakeRequestThe handshake request being rejected.
actorIAsiBackboneActorContextThe actor rejecting the handshake.
acknowledgmentIdstringOptional acknowledgment identifier. When omitted, a new identifier is generated.
occurredUtcDateTimeOffset?Optional response timestamp. When omitted, the current UTC timestamp is used.
metadataIReadOnlyDictionary<string, string>Optional host-provided metadata.
schemaVersionstringOptional schema version for serialized or persisted acknowledgment records.
Returns
- LiabilityHandshakeAcknowledgment
A rejected liability handshake acknowledgment response.