Closed dmitrynovik closed 6 years ago
I guess that's reasonable 😄
Do you think it would work if a "customization callback" could be provided, e.g. like this:
Configure.With(...)
.Transport(t => {
t.UseRabbitMq(...)
.CustomizeConnectionFactory(factory => {
// do what you want with the connection factory in here
return factory;
});
})
.(...)
.Start();
?
Oh well, I just did it – it's on NuGet.org as Rebus.RabbitMq 5.0.0-b01 now 😄 let me know if it works as it should
Thank you for a prompt response! The callback is an elegant solution (very little added code) and works like a charm.
Good to hear 😄 if, after a while, you get tired of using a prerelease version, please report back here if it still works 😁 then I'll publish a package with a stable version number
I need to configure RabbitMQ connection heartbeat as described here: https://www.rabbitmq.com/heartbeats.html
However, because Rebus effectively hides RabbitMQ connection factory inside its internal ConnectionManager, I cannot find the way to do it.
From what I see, the ConnectionManager creates the ConnectonFactory with some sort of default values which there is no way to override (ConnectionManager.cs):
It would be nice to expose the option to configure the ConnectionFactory's properties!