Table of Contents

Class OutboxBuilderMartenExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.Outbox.Marten.dll

Extension methods for configuring the Marten provider on IOutboxBuilder.

[RequiresUnreferencedCode("Marten outbox document mapping and queries depend on runtime metadata. This provider is not compatible with trimming.")]
[RequiresDynamicCode("Marten outbox document mapping uses runtime type metadata and may require native generic instantiations unavailable under NativeAOT. The current internal document path has not been validated for NativeAOT.")]
public static class OutboxBuilderMartenExtensions
Inheritance
OutboxBuilderMartenExtensions
Inherited Members

Remarks

The Marten outbox store resolves an IDocumentStore from the container, so the consumer must also register Marten (for example via services.AddMarten(...)) with the outbox document type mapped.

Methods

UseMarten(IOutboxBuilder, Action<MartenOutboxStoreOptions>?)

Configures the outbox to use Marten document storage.

public static IOutboxBuilder UseMarten(this IOutboxBuilder builder, Action<MartenOutboxStoreOptions>? configure = null)

Parameters

builder IOutboxBuilder

The outbox builder.

configure Action<MartenOutboxStoreOptions>

Optional action to configure Marten-specific outbox options.

Returns

IOutboxBuilder

The builder for fluent chaining.

Exceptions

ArgumentNullException

Thrown when builder is null.