Closed germancasares closed 5 years ago
The solution will look a lot more like this branch:
https://github.com/BenMorris/FunctionsCustomSercuity/tree/NativeInjectionSupport
The only downside of using the new native DI is that you have to remember to call a validation method on every function. Probably not too great a burden.
I'll update all the main code (and related blog post) soon.
The main branch and blog post have been updated with both approaches. That said, dependency injection involves much less code so is the approach I would recommend.
Now that Azure functions have dependency injection built-in, as per https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection.
What should we do instead of :