Back
If you want to receive more messages then you should go for the concept of Prefetching. It will help you to load messages from the service. You try the below code as an example:
SubscriptionClient client = SubscriptionClient.CreateFromConnectionString(connectionString, topic, subName);client.PrefetchCount = 10;IEnumerable<BrokeredMessage> messageList = client.ReceiveBatch(5);
SubscriptionClient client = SubscriptionClient.CreateFromConnectionString(connectionString, topic, subName);
client.PrefetchCount = 10;
IEnumerable<BrokeredMessage> messageList = client.ReceiveBatch(5);
Also join azure developer training now!!
Want to become an Azure Developer? Watch this video on How to Become Azure Developer? | Learn Azure :
31k questions
32.8k answers
501 comments
693 users