Table of Contents

Interface IMessageTypeMappingBuilder<TMessage>

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Abstractions.dll

Builder for configuring transport-specific mappings for a message type.

public interface IMessageTypeMappingBuilder<TMessage> where TMessage : class

Type Parameters

TMessage

The message type being configured.

Extension Methods

Remarks

The core interface provides ToTransport(string, Action<ITransportMessageContext>) for custom/generic transport configuration. Transport-specific methods (ToRabbitMq, ToKafka, etc.) are provided as extension methods.

Methods

And()

Returns to the parent builder to configure another message type.

IMessageMappingBuilder And()

Returns

IMessageMappingBuilder

The parent message mapping builder.

ToTransport(string, Action<ITransportMessageContext>)

Configures a custom transport mapping for this message type.

IMessageTypeMappingBuilder<TMessage> ToTransport(string transportName, Action<ITransportMessageContext> configure)

Parameters

transportName string

The name of the custom transport.

configure Action<ITransportMessageContext>

Action to configure the transport context.

Returns

IMessageTypeMappingBuilder<TMessage>

This builder for fluent configuration.