Interface IEmailAuditSink
- Namespace
- MailForge.Interfaces
- Assembly
- MailForge.dll
Receives a record of every send attempt. An audit sink is the recommended place to persist delivery history for retry and compliance purposes.
public interface IEmailAuditSink
Methods
RecordAsync(EmailAuditRecord, CancellationToken)
Records the outcome of a send attempt.
Task RecordAsync(EmailAuditRecord record, CancellationToken cancellationToken = default)
Parameters
recordEmailAuditRecordThe audit record.
cancellationTokenCancellationTokenA token used to cancel the operation.