Azure Functions supports the dependency injection, which builds on top of the ASP.NET Core Dependency Injection features. Support for dependency injection begins with Azure Functions 2.x.
This is a hand-on lab which shows how to implement dependency injection in Azure function
Before you can use dependency injection, you must install the following NuGet packages:
Microsoft.Azure.Functions.Extensions
Microsoft.NET.Sdk.Functions package version 1.0.28 or later
Optional: Microsoft.Extensions.Http (Only required for registering HttpClient at startup)
Смотрите видео Azure Functions Dependency Injection онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodeWithVijay 16 Июль 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,494 раз и оно понравилось 63 людям.