How to set EventHubOptions in Isolated Azure Function

Sayed Reda 20 Reputation points
2024-09-18T14:05:12.73+00:00

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?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,912 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
630 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.