Azure Functions with .Net Core 2.1 and DI
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
Hi Everyone,
I have a WebAPI .Net Core 2.0 project with plenty of methods. Do we have any good example that show the correct way of doing Dependency Injection in Azure Function.
I think Azure Function should support a generic way of calling a method from Generic project.
For Example: I have a GenericProject with my own code in there. In Azure Function, I would like to do some things like this.
Function1: GenericProject.CleanUpOldCustomerFromDatabase();
Function2: GenericProject.GenerateCustomerBilling();
Function3: GenericProject.SendEmailToNewCustomer():
Function 1-2-3 can be a Http trigger or Timer trigger
Then My functions will be very thin. I can consolidate my business code into 1 place (project) instead of spreading into multiple Azure Functions.
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.