I can't seem to find a way to configure the properties of a Topic (specifically to enable partitioning on Topic and to specify the size of a Topic in azure). Here's what I was doing:
var _busControl = Bus.Factory.CreateUsingAzureServiceBus(sbc =>
{
var serviceUri = ServiceBusEnvironment.CreateServiceUri("sb", "AzureSbNamespace", "AzureSbPath");
var host = sbc.Host(serviceUri, h =>
{
h.TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider("AzureSbKeyName", "AzureSbSharedAccessKey", TimeSpan.FromDays(1), TokenScope.Namespace);
});
});
await _busControl.Publish<IModel>(dummyModel);
When the message is published, MassTransit is creating a Topic (if it doesn't exist) based on the type of the message being published. This topic has default settings like 1GB size and partitioning disabled. Is there a way to change these defaults?
We are trying to use this in a deployment script so all the topics are created upfront programmatically. Not sure if anyone uses MassTransit for this. Any help on this is much appreciated.