A simple work-around for Azure Functions V2 while we wait for official DI support.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3145150 Apr 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FuncServiceLocator Add project files. Apr 3, 2018
FunctionProject Add project files. Apr 3, 2018
Library Add project files. Apr 3, 2018
.gitattributes Add .gitignore and .gitattributes. Apr 3, 2018
.gitignore Add project files. Apr 3, 2018
Azure.FunctionsV2.Service.Locator.sln Add project files. Apr 3, 2018
LICENSE Create LICENSE Apr 3, 2018
README.md Update README.md Apr 3, 2018

README.md

Repository for code from my 2018-Apr-03 blog post:

Service Locator for Azure Functions V2

The article explains why I went with the Service Locator "anti-pattern" -- but the short version is that Microsoft is working on correct dependency injection support for Azure Functions V2, so it didn't seem worthwhile to port the V1 DI system to V2, particularly since it relies on extensibility features (custom trigger bindings) that Microsoft considers unsupported.