Class LiabilityHandshakeRequest
- Namespace
- AsiBackbone.Core.Handshakes
- Assembly
- AsiBackbone.Core.dll
Represents a framework-neutral liability or responsibility handshake request before consequential execution.
public sealed class LiabilityHandshakeRequest
- Inheritance
-
LiabilityHandshakeRequest
- Inherited Members
Properties
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 handshake.
public string ActorId { get; }
Property Value
ActorType
Gets the actor type associated with the handshake.
public AsiBackboneActorType ActorType { get; }
Property Value
CorrelationId
Gets the correlation identifier associated with the handshake, when supplied by the host.
public string? CorrelationId { get; }
Property Value
HandshakeId
Gets the stable handshake identifier.
public string HandshakeId { get; }
Property Value
HasMetadata
Gets a value indicating whether this handshake contains metadata.
public bool HasMetadata { get; }
Property Value
Message
Gets the human-readable message explaining why the handshake is required.
public string Message { get; }
Property Value
Metadata
Gets additional framework-neutral handshake metadata supplied by the host.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
OperationName
Gets the operation name requiring acknowledgment.
public string OperationName { get; }
Property Value
PolicyHash
Gets the policy hash associated with the handshake, when supplied by the host.
public string? PolicyHash { get; }
Property Value
PolicyVersion
Gets the policy version associated with the handshake, when supplied by the host.
public string? PolicyVersion { get; }
Property Value
ReasonCode
Gets the machine-readable reason code explaining why the handshake is required.
public string ReasonCode { get; }
Property Value
RequiredAcknowledgmentCode
Gets the required acknowledgment code the host may display or require before execution.
public string RequiredAcknowledgmentCode { get; }
Property Value
RequiredAcknowledgmentText
Gets the required acknowledgment text the host may display before execution.
public string RequiredAcknowledgmentText { get; }
Property Value
RiskCategory
Gets the optional host-defined risk category associated with the handshake.
public string? RiskCategory { get; }
Property Value
RiskLevel
Gets the risk level associated with the handshake.
public LiabilityHandshakeRiskLevel RiskLevel { get; }
Property Value
SchemaVersion
Gets the schema version for the serialized handshake request shape.
public string SchemaVersion { get; }
Property Value
TraceId
Gets the trace identifier associated with the handshake, when supplied by the host.
public string? TraceId { get; }
Property Value
Methods
Create(IAsiBackboneActorContext, string, string, string, string, string, LiabilityHandshakeRiskLevel, string?, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?, string?)
Creates a liability or responsibility handshake request.
public static LiabilityHandshakeRequest Create(IAsiBackboneActorContext actor, string operationName, string reasonCode, string message, string requiredAcknowledgmentCode, string requiredAcknowledgmentText, LiabilityHandshakeRiskLevel riskLevel = LiabilityHandshakeRiskLevel.Unspecified, string? riskCategory = null, string? handshakeId = null, string? correlationId = null, string? traceId = null, string? policyVersion = null, string? policyHash = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
actorIAsiBackboneActorContextThe actor associated with the handshake.
operationNamestringThe operation name requiring acknowledgment.
reasonCodestringThe machine-readable reason code.
messagestringThe human-readable reason message.
requiredAcknowledgmentCodestringThe required acknowledgment code.
requiredAcknowledgmentTextstringThe required acknowledgment text.
riskLevelLiabilityHandshakeRiskLevelThe risk level associated with the handshake.
riskCategorystringOptional host-defined risk category.
handshakeIdstringOptional handshake identifier. When omitted, a new identifier is generated.
correlationIdstringOptional correlation identifier.
traceIdstringOptional trace identifier.
policyVersionstringOptional policy version.
policyHashstringOptional policy hash.
metadataIReadOnlyDictionary<string, string>Optional host-provided metadata.
schemaVersionstringOptional schema version for serialized or persisted handshake records.
Returns
- LiabilityHandshakeRequest
A liability handshake request.
FromDecision(IAsiBackboneActorContext, string, GovernanceDecision, string, string, LiabilityHandshakeRiskLevel, string?, string?, IReadOnlyDictionary<string, string>?, string?)
Creates a liability or responsibility handshake request from a governance decision.
public static LiabilityHandshakeRequest FromDecision(IAsiBackboneActorContext actor, string operationName, GovernanceDecision decision, string requiredAcknowledgmentCode, string requiredAcknowledgmentText, LiabilityHandshakeRiskLevel riskLevel = LiabilityHandshakeRiskLevel.Unspecified, string? riskCategory = null, string? handshakeId = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
actorIAsiBackboneActorContextThe actor associated with the handshake.
operationNamestringThe operation name requiring acknowledgment.
decisionGovernanceDecisionThe governance decision requiring acknowledgment.
requiredAcknowledgmentCodestringThe required acknowledgment code.
requiredAcknowledgmentTextstringThe required acknowledgment text.
riskLevelLiabilityHandshakeRiskLevelThe risk level associated with the handshake.
riskCategorystringOptional host-defined risk category.
handshakeIdstringOptional handshake identifier. When omitted, a new identifier is generated.
metadataIReadOnlyDictionary<string, string>Optional host-provided metadata.
schemaVersionstringOptional schema version for serialized or persisted handshake records.
Returns
- LiabilityHandshakeRequest
A liability handshake request.