Method WithRetention
WithRetention(TimeSpan)
Enables automatic cleanup of completed handler statuses older than the specified retention period. Poisoned statuses are never auto-deleted — they require manual investigation. Orphaned inbox messages (with no remaining handler statuses) are also deleted.
public InboxBuilder<TDbContext> WithRetention(TimeSpan period)
Parameters
periodTimeSpan
Returns
- InboxBuilder<TDbContext>