Class GovernanceEvidenceServiceExtensions
- Namespace
- ReferenceApplication.Web.Extensions
- Assembly
- ReferenceApplication.Web.dll
Provides the Reference Application's governance evidence persistence composition (walkthrough Step 6).
public static class GovernanceEvidenceServiceExtensions
- Inheritance
-
GovernanceEvidenceServiceExtensions
- Inherited Members
Fields
AuditCompletionOutboxSectionName
The configuration section that can override the NCAT audit-completion outbox options.
public const string AuditCompletionOutboxSectionName = "ReferenceApplication:AuditCompletionOutbox"
Field Value
AuditReconciliationSectionName
The configuration section that controls NCAT audit reconciliation.
public const string AuditReconciliationSectionName = "ReferenceApplication:AuditReconciliation"
Field Value
Methods
AddApplicationGovernanceEvidence(IServiceCollection, IConfiguration)
Persists governance decision receipts to the AsiBackbone audit ledger in the host-owned ApplicationDbContext, and links NCAT audit completion to that evidence.
public static IServiceCollection AddApplicationGovernanceEvidence(this IServiceCollection services, IConfiguration configuration)
Parameters
servicesIServiceCollectionThe service collection to configure.
configurationIConfigurationThe application configuration used to bind reconciliation options.
Returns
- IServiceCollection
The same service collection so calls can be chained.
Remarks
Call after AddApplicationDataAccess and AddApplicationAsiBackbone. The registration:
- binds the AsiBackbone EF Core audit ledger and lifecycle stores to the host context;
- registers LedgerDecisionReceiptSink as the endpoint governance audit sink;
- exposes the request's persisted evidence through IGovernanceDecisionEvidenceAccessor;
- enables the NCAT audit-completion outbox with AsiBackboneAuditCompletionPublisher as its default destination;
- registers NCAT audit reconciliation, its background worker, metrics, and audit-integrity health check;
- registers GovernanceTelemetryProjection, which projects persisted evidence onto telemetry when
AddApplicationOpenTelemetryhas registered AsiBackbone's governance emitter, and does nothing otherwise.