How to set EventHubOptions in Isolated Azure Function
Sayed Reda
20
Reputation points
I had in-process azure function with event hub trigger. I was configuring EventHubOptions programmatically as below:
builder.Services.PostConfigure<EventHubOptions>(o =>
{
o.MaxEventBatchSize = maxBatchSizeValue;
o.PrefetchCount = prefetchCountValue;
});
But after migrating to isolated azure function, there is no EventHubOptions
class so how can I configure it?
Sign in to answer