首页 新闻 会员 周边

.net core中的服务怎么理解

0
悬赏园豆:5 [已解决问题] 解决于 2021-12-24 18:36

就是Startup中注册的那些服务,什么东西应该做成服务。

拖鞋王子的主页 拖鞋王子 | 初学一级 | 园豆:37
提问于:2021-01-05 18:28
< >
分享
最佳答案
0

你要实现的功能都可以写成服务

收获园豆:5
不知道风往哪儿吹 | 老鸟四级 |园豆:2035 | 2021-01-06 09:16

谢谢

拖鞋王子 | 园豆:37 (初学一级) | 2021-01-06 10:35
其他回答(4)
0

可以理解成IOC容器,注入服务依赖后就可以使用相关实例

godcloudy | 园豆:18 (初学一级) | 2021-01-06 10:04

IOC我懂的,我不是问这个

支持(0) 反对(0) 拖鞋王子 | 园豆:37 (初学一级) | 2021-01-06 10:35
0

说的直白一点 服务就是业务接口

以前叫webapi,wcf 现在叫微服务

推荐一个干货教程,.NET Core 跨平台实战

智客工坊 | 园豆:1855 (小虾三级) | 2021-01-06 15:56

谢谢

支持(0) 反对(0) 拖鞋王子 | 园豆:37 (初学一级) | 2021-01-06 18:27
0

在 .Net Core 中,万物皆可为服务

flyfishing | 园豆:943 (小虾三级) | 2021-01-06 18:58
0

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.

dudu | 园豆:30979 (高人七级) | 2021-01-07 21:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册