Table of Contents

Method WithoutBackgroundProcessing

Namespace
Ratatoskr.EfCore
Assembly
Ratatoskr.EfCore.dll

WithoutBackgroundProcessing()

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

public InboxBuilder<TDbContext> WithoutBackgroundProcessing()

Returns

InboxBuilder<TDbContext>