Azure / azure-functions-dotnet-extensions

Azure Functions .NET extensions
MIT License
75 stars 41 forks source link

Is there any documentation available for migrating from IWebJobsStartup to FunctionsStartup in Azure Function? #74

Closed prashantagrawalcrowe closed 1 month ago

prashantagrawalcrowe commented 11 months ago

Hi,

Please let me know if there is any official documentation available for migrating startup class from IWebJobsStartup to FunctionsStartup in Azure Function?

Thanks Prashant

fabiocav commented 7 months ago

Hey @prashantagrawalcrowe, no documentation for that topic specifically, but if you're running into issues, we can provide some guidance here if you can share the details.

udlose commented 7 months ago

Hey @prashantagrawalcrowe, no documentation for that topic specifically, but if you're running into issues, we can provide some guidance here if you can share the details.

@fabiocav I'm using an Isolated Worker Function (v4). I see that the DI Sample here uses FunctionStartup yet everything I can find on setting up DI/Configuration for Isolated Worker says you cannot use FunctionStartup - see the Important note here: Use dependency injection in .NET Azure Functions. Is that still the case? Should the sample be updated?

mattchenderson commented 1 month ago

Closing old item. The documentation for configuring DI in the isolated worker model as part of your Program.cs file is found here: https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=windows#start-up-and-configuration