I have the code below for creating a queue in Azure service Bus
var cs = azureServiceBusConnectionString;
var namespaceManager = NamespaceManager.CreateFromConnectionString(cs);
if (namespaceManager.QueueExists(queueName))
{
namespaceManager.DeleteQueue(queueName);
}
var que = namespaceManager.CreateQueue(queueName);
que.EnablePartitioning = true;
My queue is created ok but I have 2 questions
1) Even though I set EnablePartioning to true my queue has EnablePartioning set to false. Why is this? Is there a method I have to call to save the changes or something 2) I cant set the size of the queue as the SizeInBytes property is read only. How can I do that?
I dont see any constructor that allows me to set EnablePartitioning or the size?
Paul