Interface IAuditProvider
- Namespace
- WorkflowForge.Extensions.Audit
- Assembly
- WorkflowForge.Extensions.Audit.dll
Defines a provider for storing audit entries. Implement this interface to integrate with your storage system (database, file, etc.).
public interface IAuditProvider
Methods
FlushAsync(CancellationToken)
Flushes any buffered audit entries to storage.
Task FlushAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenOptional cancellation token.
Returns
- Task
A task representing the asynchronous operation.
WriteAuditEntryAsync(AuditEntry, CancellationToken)
Stores an audit entry asynchronously.
Task WriteAuditEntryAsync(AuditEntry entry, CancellationToken cancellationToken = default)
Parameters
entryAuditEntryThe audit entry to store.
cancellationTokenCancellationTokenOptional cancellation token.
Returns
- Task
A task representing the asynchronous operation.