Leveraging the Dependency Injection support in Azure Functions
For many developers, techniques such as dependency injection and inversion of control have become commonplace in their codebases. Particularly in the .NET space, there are tons of open source frameworks and libraries that make incorporating these practices much easier.
As the software industry continues to steadily adopt more serverless technologies, development teams continue to search for ways to leverage their existing investments into this new serverless world. They want to be able to create modular components and dynamically swap out their implementations without having to rewrite or deploy their code. They want to be able to write focused unit tests for their code and create mock implementations that abstract away external dependencies.
These are just some of the reasons why support for dependency injection was added to serverless functions targeting .NET Core in Azure Functions v2.
If you liked this video and would like to see some more of our .NET content, please subscribe to our .NET Developers YouTube Channel.