你要实现的功能都可以写成服务
谢谢
可以理解成IOC容器,注入服务依赖后就可以使用相关实例
IOC我懂的,我不是问这个
在 .Net Core 中,万物皆可为服务
Startup中注册的那些服务
是依赖注入范畴的service
In software engineering, dependency injection is a technique in which an object receives other objects that it depends on. These other objects are called dependencies. In the typical "using" relationship the receiving object is called a client and the passed (that is, "injected") object is called a service.