Azure Event hubs changing the minimum of the reciever -


i'm using eventprocessorhost messages off event hub. there easy way change maximum number of messages pulled off @ time. right default 10 , know when using normal eventreciever relatively easy change default, couldn't find documentation when using eventprocessor.

i want when processeventsasync called maximum number of messages passed in less 10.

you can providing eventprocessoroptions when registering eventprocessor maxbatchsize property modified (https://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.eventprocessoroptions.maxbatchsize.aspx). example:

 var eventprocessorhost = new eventprocessorhost(...);   await eventprocessorhost.registereventprocessorasync<myeventprocessor>(new eventprocessoroptions{maxbatchsize = 5}); 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -