Table of Contents

Method WithoutBackgroundProcessing

Namespace
Ratatoskr.EfCore
Assembly
Ratatoskr.EfCore.dll

WithoutBackgroundProcessing()

Prevents the Ratatoskr.EfCore.Internal.OutboxProcessor<TDbContext> from being registered as a hosted service. Use this in integration tests where you want deterministic control over when outbox processing runs (e.g. by calling OutboxMessageProcessor.ProcessBatchAsync directly). Note: this also prevents Ratatoskr.EfCore.Internal.OutboxCleanupService<TDbContext> from running, even when WithRetention(TimeSpan) is configured.

public OutboxBuilder<TDbContext> WithoutBackgroundProcessing()

Returns

OutboxBuilder<TDbContext>