We are in the process of migrating Azure Functions to isolated in our project. During this process I came across an implementation of Microsoft.Azure.WebJobs.Host.Executors.IJobHostContextFactory
. But no one could tell me what it is needed for.
I haven't found any documentation for it. Can anyone of you help me?
What is the purpose of Microsoft.Azure.WebJobs.Host.Executors.IJobHostContextFactory
or its implementation Microsoft.Azure.WebJobs.Host.Executors.JobHostContextFactory
?
Do I need it for isolated functions?
Edit:
I looked into it again and found that when I start an In-Process function the ServiceCollection contains a reference to IJobHostContextFactory. However, when I start an isolated function, the ServiceCollection does not contain a reference. That is, for isolated functions, the JobHostContextFactory does not seem to be needed.