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
builderIDispatchBuilderThe 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
builderIDispatchBuilderThe dispatch builder.
Returns
- IDispatchBuilder
The dispatch builder for chaining.
Type Parameters
TDetectorThe 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
builderIDispatchBuilderThe dispatch builder.
configurationIConfigurationThe 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
builderIDispatchBuilderThe dispatch builder.
configureOptionsAction<PoisonMessageOptions>Action to configure poison message options.
Returns
- IDispatchBuilder
The dispatch builder for chaining.