Skip to content

aczarkowski/AzureFunctionsV2DependencyInjection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Azure Functions V2 Dependency Injection

Sample demonstrating dependency injection in Azure Functions V2.

It's based on how ILogger is injected into the default function signature.

Startup project

By using IWebJobsStartup we get access to the IServiceCollection instance where we register our IWelcomeService.

By following how Host binds function parameters as per https://github.com/Azure/azure-webjobs-sdk-extensions/wiki/The-Binding-Process we register IBindingProvider to our GenericBindingProvider which does the whole job.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages