How to add dependency-injection in you FunctionApp:
- Add Startup class in your function app (shown in below image) You can modify the services based on your requirement.
using AzureFunctionsV1.DependencyInjection.Infra;
- Add below line in your FunctionApp class file.