Skip to content

Interface IAuditHistoryReader

Namespace: Cephalon.Abstractions.Audit
Assembly: Cephalon.Abstractions.dll

Reads persisted audit-history entries from the active runtime.

public interface IAuditHistoryReader

Resolves one audit-history entry by its stable identifier.

ValueTask<AuditHistoryEntry?> GetByIdAsync(string auditEntryId, CancellationToken cancellationToken = default)

auditEntryId string

The stable audit-entry identifier to resolve.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask<AuditHistoryEntry?>

The matching audit-history entry when one exists; otherwise null.

QueryAsync(AuditHistoryQuery, CancellationToken)

Section titled “ QueryAsync(AuditHistoryQuery, CancellationToken)”

Queries audit-history entries using the supplied host-agnostic filter set.

ValueTask<AuditHistoryQueryResult> QueryAsync(AuditHistoryQuery query, CancellationToken cancellationToken = default)

query AuditHistoryQuery

The query to execute.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask<AuditHistoryQueryResult>

The resulting page of audit-history entries.