WCF何时将优先于Web API [英] When WCF will be preffered over web api
问题描述
我们可以通过Web api开发Web服务,因为它很简单.所以告诉我几个方案,当人们更喜欢使用wcf而不是Web api开发Web服务时?
we can develop web service by web api because its easy nature. so tell me few scenario when people prefer to develop web service with wcf instead of web api?
有人提出wcf允许tcp,msmq,命名管道等多种协议.假设当我们的要求仅限于http时,为什么人们会更喜欢wcf而不是Web api?
one point people raise that wcf allow multiple protocol like tcp, msmq, named pipe etc. suppose when our requirement is limited to http then why people would prefer wcf instead of web api?
请详细发布人们在某些特定情况下希望使用wcf的所有要点.
please post all the points in detail for which people prefer wcf for few specific scenario.
谢谢
推荐答案
MVC controller or Web API controller
他们致电WCF服务
WCF服务拨打业务层
the WCF services makes calls to the Business Layer
存储库(对于带有DB的CRUD)或业务对象与存储库具有相同的作用.
Repository (for CRUD with DB) or Business Object doing the same thing as the Repository.
他们称DAL
DB的DAL(CRUD)操作
DAL (CRUD) operations with the DB
这篇关于WCF何时将优先于Web API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!