I am having trouble to get NServicebus to use more than one thread for processing messages. I have a MessageHandler that is handling the message.
public void Handle(MyCommand message)
{
Console.Write("Starting to process message");
Thread.Sleep(2000);
Console.Write("Finished to process message.");
}
I then add about 1000 messages in the queues and starts the service, each message takes 2 seconds to be processed. In the config I have added
<TransportConfig MaximumConcurrencyLevel="8" MaxRetries="5" MaximumMessageThroughputPerSecond="0" />
I’m using a standard license for this test.
Any suggestions?