Built-in dependency injection with conventions
问题 How to inject services without registering them? I mean in the past some DI frameworks automatically registered Service for IService . I'm in a situation where I have a dozen of services and basically registering every single one is a pain in the ass. so is this supported in asp.net core default DI framework? 回答1: The out-of-the-box DI doesn't support it and do not intend to do so. The built-in IoC Container is kept simple by design, to allow basic dependency injection which works for most