Dependency injection injecting null when missing registration in Azure functions
问题 I'm getting null injected into my constructor that has a dependency which I forgot to register. In the below example dependency would be null when you forget to register IDepencency in the startup class public class AzureFunction { public AzureFunction(IDepencency dependency) { } } I expected it to work the same as in .net core DI. Is this expected behavior? And can I maybe change a setting to enable throwing exceptions? Edit: After reading HariHaran's answer, I realized it's only happening