For the complete documentation index, see llms.txt. This section of documentation is indexed by https://docs.particular.net/transports/llms.txt. Here is the markdown version of this page. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md.

RabbitMQ Transport Upgrade Version 4.0 to 4.1

Component: RabbitMQ Transport

Custom routing topology

The UseRoutingTopology method has a new overload with a parameter representing a factory delegate, which creates the custom routing topology. The factory delegate allows the use of non-default constructors for custom routing topology instances. The UseRoutingTopology method overload with no parameters is deprecated.

// For RabbitMQ Transport version 4.x
var transport = endpointConfiguration.UseTransport<RabbitMQTransport>();
transport.UseRoutingTopology<MyRoutingTopology>();

// For RabbitMQ Transport version 4.x
var transport = endpointConfiguration.UseTransport<RabbitMQTransport>();
transport.UseRoutingTopology(
    topologyFactory: createDurableExchangesAndQueues =>
    {
        return new MyRoutingTopology();
    });

Related Articles

  • Routing topology
    Learn about the routing topology options in RabbitMQ and how they impact NServiceBus systems.