Class GovernanceHttpRequestCorrelationDecisionReceiptExtensions
- Namespace
- AsiBackbone.AspNetCore.Correlation
- Assembly
- AsiBackbone.AspNetCore.dll
Provides helpers for applying ASP.NET Core request correlation data to framework-neutral decision receipt.
public static class GovernanceHttpRequestCorrelationDecisionReceiptExtensions
- Inheritance
-
GovernanceHttpRequestCorrelationDecisionReceiptExtensions
- Inherited Members
Methods
CreateDecisionReceipt(GovernanceHttpRequestCorrelation, IGovernanceActorContext, string, GovernanceDecision, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?)
Creates decision receipt from a governance decision and enriches it with safe ASP.NET Core request correlation data.
public static DecisionReceipt CreateDecisionReceipt(this GovernanceHttpRequestCorrelation correlation, IGovernanceActorContext actor, string operationName, GovernanceDecision decision, string? eventId = null, DateTimeOffset? occurredUtc = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
correlationGovernanceHttpRequestCorrelationThe resolved ASP.NET Core request correlation data.
actorIGovernanceActorContextThe actor associated with the operation.
operationNamestringThe operation name.
decisionGovernanceDecisionThe governance decision to audit.
eventIdstringOptional audit event identifier. When omitted, a new identifier is generated.
occurredUtcDateTimeOffset?Optional event timestamp. When omitted, the current UTC timestamp is used.
metadataIReadOnlyDictionary<string, string>Optional host-provided audit metadata to merge with safe request metadata.
Returns
- DecisionReceipt
An enriched decision receipt value.