Azure / azure-functions-dotnet-worker

Azure Functions out-of-process .NET language worker
MIT License
431 stars 184 forks source link

re-use FunctionsWorkerApplicationBuilder if called multiple times #2774

Closed brettsam closed 1 month ago

brettsam commented 1 month ago

Calling any of the setup methods multiple times results in things mostly working, but each call returns a different IFunctionsWorkerApplicationBuilder. This can get confusing and lead to odd behavior. This will ensure we re-use the object that's created the first time through.

Pull request checklist