Method WithRetention
WithRetention(TimeSpan)
Enables automatic cleanup of successfully processed messages older than the specified retention period. Poisoned messages are never auto-deleted — they require manual investigation.
public OutboxBuilder<TDbContext> WithRetention(TimeSpan period)
Parameters
periodTimeSpan
Returns
- OutboxBuilder<TDbContext>