Interface IAuditHistoryReader
Namespace: Cephalon.Abstractions.Audit
Assembly: Cephalon.Abstractions.dll
Reads persisted audit-history entries from the active runtime.
public interface IAuditHistoryReaderMethods
Section titled “Methods”GetByIdAsync(string, CancellationToken)
Section titled “ GetByIdAsync(string, CancellationToken)”Resolves one audit-history entry by its stable identifier.
ValueTask<AuditHistoryEntry?> GetByIdAsync(string auditEntryId, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”auditEntryId string
The stable audit-entry identifier to resolve.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”query AuditHistoryQuery
The query to execute.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”ValueTask<AuditHistoryQueryResult>
The resulting page of audit-history entries.