Table of Contents

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

cancellationToken CancellationToken

Optional 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

entry AuditEntry

The audit entry to store.

cancellationToken CancellationToken

Optional cancellation token.

Returns

Task

A task representing the asynchronous operation.