Table of Contents

Class DurabilityBuilder<TDbContext>

Namespace
Ratatoskr.EfCore
Assembly
Ratatoskr.EfCore.dll

Builder for configuring EF Core durability (inbox and/or outbox) for a specific DbContext type.

public class DurabilityBuilder<TDbContext> where TDbContext : DbContext, IInboxDbContext, IOutboxDbContext

Type Parameters

TDbContext
Inheritance
DurabilityBuilder<TDbContext>
Inherited Members

Methods

UseInbox()

Enables the inbox pattern for this DbContext with default options.

UseInbox(Action<InboxBuilder<TDbContext>>?)

Enables the inbox pattern for this DbContext with custom options.

UseOutbox()

Enables the outbox pattern for this DbContext with default options.

UseOutbox(Action<OutboxBuilder<TDbContext>>?)

Enables the outbox pattern for this DbContext with custom options.

WithMetricsPollingInterval(TimeSpan)

Sets how often background queries refresh backlog gauge state. Defaults to 30 seconds.

WithMetricsQueryTimeout(TimeSpan)

Sets the cancellation timeout for each individual COUNT query used to update backlog gauges. Defaults to 5 seconds per query.