Class GovernanceDecisionEvidenceAccessor
- Namespace
- ReferenceApplication.Web.Governance
- Assembly
- ReferenceApplication.Web.dll
Holds the governance decision evidence persisted for the current request scope.
public sealed class GovernanceDecisionEvidenceAccessor : IGovernanceDecisionEvidenceAccessor
- Inheritance
-
GovernanceDecisionEvidenceAccessor
- Implements
- Inherited Members
Remarks
LedgerDecisionReceiptSink records the evidence after the decision receipt is durably appended to the audit ledger. The evidence is set once per request; a second write in the same scope is rejected so a request can never silently relink its mutations to a different decision.
Properties
Current
Gets the evidence persisted for the current request, or null when the request was not governed with audit emission.
public GovernanceDecisionEvidence? Current { get; }
Property Value
Methods
Record(GovernanceDecisionEvidence)
Records the evidence persisted for the current request.
public void Record(GovernanceDecisionEvidence evidence)
Parameters
evidenceGovernanceDecisionEvidenceThe persisted decision evidence.
Exceptions
- InvalidOperationException
Evidence was already recorded for this request.