Table of Contents

Interface IAuditWriter

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Provides durable, tamper-evident storage of audit events.

public interface IAuditWriter

Remarks

Implementations may use SQL Server, Postgres, append-only blob storage, or specialized audit platforms (e.g., Splunk, Datadog).

Methods

StoreAsync(AuditEvent, CancellationToken)

Stores an audit event with hash chain linking.

Task<AuditEventId> StoreAsync(AuditEvent auditEvent, CancellationToken cancellationToken)

Parameters

auditEvent AuditEvent

The audit event to store.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<AuditEventId>

The stored event with assigned ID, hash, and sequence number.

Remarks

Confined to the ambient tenant established for this store instance when the implementing IAuditStore presents ITenantScopingCapability<TContract>: the stored event lands in the caller's own partition and can neither be observed by, nor collide with, another tenant's chain. See IAuditStore for the full confinement statement.