What is the advantages and disadvantages of using services over components?

后端 未结 3 605
悲&欢浪女
悲&欢浪女 2020-12-24 09:17

From past few months I am working on projects in latest dot net frameworks.

I feel that in latest dot net versions \"services\" are encouraged over components. Is

3条回答
  •  离开以前
    2020-12-24 10:02

    Something else to consider -- just because functionality is exposed as a "service" doesn't mean that it has to be hosted somewhere or exposed as a webservice.

    You could very well access a service directly, in memory.

    Exposing related functionality as a service is more about the interaction between various pieces of your application. It doesn't say anything about how you deploy/access these pieces.

提交回复
热议问题