Cecil Phillip, Rich Lander are authors of this video in which they walk you though dependency injection for Azure functions (serverless). .NET developers have been taking advantage of dependency injection (DI) to make their code easier to test and manage. The latest update to Azure Functions v2 now has support for registering services with DI.
In this episode, Fabio Cavalcante from the Azure Functions team showcases how this feature works:
- Why is dependency injection so important for Azure Functions?
- What had to happen on the engineering side to enable this feature?
- How to register services using the DI capabilities?
- How do our functions consume these services?
- What scenarios does this feature simplify?
- How can we use HttpClientFactory in Functions?
- How can we customize ILogger?
- What other services are registered by default?
- Is there support for scoped services?
You will also get links to further reading and resources. Excellent![Read More]