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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -