Table of Contents

Interface IRabbitMQTopologyBuilder

Namespace
Excalibur.Dispatch.Transport.RabbitMQ
Assembly
Excalibur.Dispatch.Transport.RabbitMQ.dll

Builder interface for configuring RabbitMQ topology (exchanges, queues, bindings, dead letters, and CloudEvents).

public interface IRabbitMQTopologyBuilder
Extension Methods

Remarks

Provides methods for declaring exchanges, queues, bindings, dead letter handling, and CloudEvents options for RabbitMQ transport.

Methods

ConfigureBinding(Action<IRabbitMQBindingBuilder>)

Configures a binding between an exchange and a queue.

IRabbitMQTransportBuilder ConfigureBinding(Action<IRabbitMQBindingBuilder> configure)

Parameters

configure Action<IRabbitMQBindingBuilder>

The binding configuration action.

Returns

IRabbitMQTransportBuilder

The builder for chaining.

Remarks

Multiple bindings can be configured by calling this method multiple times.

Exceptions

ArgumentNullException

Thrown when configure is null.

ConfigureCloudEvents(Action<RabbitMqCloudEventOptions>)

Configures CloudEvents options for the transport.

IRabbitMQTransportBuilder ConfigureCloudEvents(Action<RabbitMqCloudEventOptions> configure)

Parameters

configure Action<RabbitMqCloudEventOptions>

The CloudEvents configuration action.

Returns

IRabbitMQTransportBuilder

The builder for chaining.

Exceptions

ArgumentNullException

Thrown when configure is null.

ConfigureDeadLetter(Action<IRabbitMQDeadLetterBuilder>)

Configures dead letter exchange handling.

IRabbitMQTransportBuilder ConfigureDeadLetter(Action<IRabbitMQDeadLetterBuilder> configure)

Parameters

configure Action<IRabbitMQDeadLetterBuilder>

The dead letter configuration action.

Returns

IRabbitMQTransportBuilder

The builder for chaining.

Exceptions

ArgumentNullException

Thrown when configure is null.

ConfigureExchange(Action<IRabbitMQExchangeBuilder>)

Configures an exchange for this transport.

IRabbitMQTransportBuilder ConfigureExchange(Action<IRabbitMQExchangeBuilder> configure)

Parameters

configure Action<IRabbitMQExchangeBuilder>

The exchange configuration action.

Returns

IRabbitMQTransportBuilder

The builder for chaining.

Remarks

Multiple exchanges can be configured by calling this method multiple times.

Exceptions

ArgumentNullException

Thrown when configure is null.

ConfigureQueue(Action<IRabbitMQQueueBuilder>)

Configures a queue for this transport.

IRabbitMQTransportBuilder ConfigureQueue(Action<IRabbitMQQueueBuilder> configure)

Parameters

configure Action<IRabbitMQQueueBuilder>

The queue configuration action.

Returns

IRabbitMQTransportBuilder

The builder for chaining.

Remarks

Multiple queues can be configured by calling this method multiple times.

Exceptions

ArgumentNullException

Thrown when configure is null.