DI in Azure Functions

后端 未结 11 1077
庸人自扰
庸人自扰 2020-12-25 10:43

I have some class libraries that I use in my ASP.NET Web API app that handle all my backend stuff e.g. CRUD operations to multiple databases like Azure SQL Database, Cosmos

11条回答
  •  悲&欢浪女
    2020-12-25 11:31

    I see these two techniques in addition to the service locator (anti)pattern. I asked the Azure Functions team for their comments as well.

    https://blog.wille-zone.de/post/azure-functions-dependency-injection/

    https://blog.wille-zone.de/post/azure-functions-proper-dependency-injection/

提交回复
热议问题