Reputation: 27
I want to change exchange-type in Masstransit.My sample code block is below.
_bus = BusConfigurator.Instance.ConfigureBus(_massTransitSettings,
(cfg, host) =>
{
cfg.ReceiveEndpoint("example-queue",
e =>
{
e.AutoDelete = true;
e.Durable = true;
e.ExchangeType = ExchangeType.Direct;
e.Consumer(() =>
{
//consume operation
});
});
});
When I do my tests, I still see the exchange-type value in rabbitmq fanout. Where am I making mistakes ?
Thank you for your support..
Upvotes: 0
Views: 1331
Reputation: 33565
There is a sample that shows how to set up direct exchange routing using RabbitMQ and MassTransit.
The configuration of exchange properties is also documented.
Upvotes: 1