Table of Contents

Class PoisonMessageDispatchBuilderExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.Dispatch.dll

Extension methods for configuring poison message handling in the dispatch pipeline.

public static class PoisonMessageDispatchBuilderExtensions
Inheritance
PoisonMessageDispatchBuilderExtensions
Inherited Members

Methods

UseInMemoryDeadLetterStore(IDispatchBuilder)

Configures the dispatch pipeline to use an in-memory dead letter store.

public static IDispatchBuilder UseInMemoryDeadLetterStore(this IDispatchBuilder builder)

Parameters

builder IDispatchBuilder

The dispatch builder.

Returns

IDispatchBuilder

The dispatch builder for chaining.

UsePoisonDetector<TDetector>(IDispatchBuilder)

Adds a custom poison message detector to the pipeline.

public static IDispatchBuilder UsePoisonDetector<TDetector>(this IDispatchBuilder builder) where TDetector : class, IPoisonMessageDetector

Parameters

builder IDispatchBuilder

The dispatch builder.

Returns

IDispatchBuilder

The dispatch builder for chaining.

Type Parameters

TDetector

The type of the detector to add.

UsePoisonMessageHandling(IDispatchBuilder, IConfiguration)

Adds poison message handling to the dispatch pipeline using configuration.

[RequiresUnreferencedCode("Uses reflection which may break with AOT compilation")]
[RequiresDynamicCode("Uses dynamic code generation which requires JIT compilation")]
public static IDispatchBuilder UsePoisonMessageHandling(this IDispatchBuilder builder, IConfiguration configuration)

Parameters

builder IDispatchBuilder

The dispatch builder.

configuration IConfiguration

The configuration section for poison message options.

Returns

IDispatchBuilder

The dispatch builder for chaining.

UsePoisonMessageHandling(IDispatchBuilder, Action<PoisonMessageOptions>?)

Adds poison message handling to the dispatch pipeline.

public static IDispatchBuilder UsePoisonMessageHandling(this IDispatchBuilder builder, Action<PoisonMessageOptions>? configureOptions = null)

Parameters

builder IDispatchBuilder

The dispatch builder.

configureOptions Action<PoisonMessageOptions>

Action to configure poison message options.

Returns

IDispatchBuilder

The dispatch builder for chaining.