I would like the configure MassTransit Message
at runtime. I could not find a way to do this and was wondering if I missed something or if it is not possible. Here is what it currently looks like:
var azureServiceBus = Bus.Factory.CreateUsingAzureServiceBus(busConfig =>
{
busConfig.Message<MyType>(configTopology =>
{
// Do some configuration
});
});
This is what I would like to do though:
var azureServiceBus = Bus.Factory.CreateUsingAzureServiceBus(busConfig =>
{
foreach (var myType in myTypes)
{
busConfig.Message(myType, configTopology =>
{
// Do some configuration
});
}
});