Class AcknowledgmentResponse
- Namespace
- AsiBackbone.Core.Acknowledgments
- Assembly
- AsiBackbone.Core.dll
Represents a framework-neutral acknowledgment response for a liability or responsibility handshake.
public sealed class AcknowledgmentResponse
- Inheritance
-
AcknowledgmentResponse
- 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 GovernanceActorType 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(AcknowledgmentRequest, IGovernanceActorContext, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates an accepted acknowledgment response for a liability or responsibility handshake.
public static AcknowledgmentResponse Accept(AcknowledgmentRequest request, IGovernanceActorContext actor, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestAcknowledgmentRequestThe handshake request being acknowledged.
actorIGovernanceActorContextThe 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
- AcknowledgmentResponse
An accepted acknowledgment acknowledgment response.
Create(AcknowledgmentRequest, IGovernanceActorContext, bool, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates an acknowledgment response for a liability or responsibility handshake.
public static AcknowledgmentResponse Create(AcknowledgmentRequest request, IGovernanceActorContext actor, bool acknowledged, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestAcknowledgmentRequestThe handshake request being acknowledged.
actorIGovernanceActorContextThe 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
- AcknowledgmentResponse
A acknowledgment acknowledgment response.
Reject(AcknowledgmentRequest, IGovernanceActorContext, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
Creates a rejected acknowledgment response for a liability or responsibility handshake.
public static AcknowledgmentResponse Reject(AcknowledgmentRequest request, IGovernanceActorContext actor, string? acknowledgmentId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
requestAcknowledgmentRequestThe handshake request being rejected.
actorIGovernanceActorContextThe 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
- AcknowledgmentResponse
A rejected acknowledgment acknowledgment response.