什么WCF的Web API和ASP.NET Web API之间的差异 [英] Whats the difference between WCF Web API and ASP.NET Web API
问题描述
香港专业教育学院完成使用WCF的WebAPI一点在过去的工作和真的很喜欢它的许多功能,我只是在此刻用的ASP.NET Web API玩,似乎完全不同的(即由WCF完全删除)。
Ive done a bit of work in the past using WCF WebAPI and really liked a lot of its features, Im just playing with ASP.NET Web API at the moment and it seems completely different (IE completely removed from WCF).
有谁知道WCF的WebAPI的这些功能都包含在ASP.NET 4的Web API?
Does anyone know which features of WCF WebAPI are included in ASP.NET 4 Web API?
推荐答案
香港专业教育学院做多一点阅读解决此,发现通过MS人几页上这样的:
Ive done a little more reading around this and found a few pages by MS people on this:
<一个href=\"http://wcf.$c$cplex.com/wikipage?title=How%20to%20Migrate%20from%20WCF%20Web%20API%20to%20ASP.NET%20Web%20API\" rel=\"nofollow\">http://wcf.$c$cplex.com/wikipage?title=How%20to%20Migrate%20from%20WCF%20Web%20API%20to%20ASP.NET%20Web%20API
在WCF的Web API抽象映射到的ASP.NET Web API大致如下:
The WCF Web API abstractions map to ASP.NET Web API roughly as follows
WCF的Web API - >的ASP.NET Web API 的
WCF Web API -> ASP.NET Web API
- 服务 - >网络API控制器
- 运行 - >动作
- 服务合同 - >不适用
- 端点 - >不适用
- URI模板 - > ASP.NET路由
- 消息处理程序 - >与
- 格式化程序 - >与
- 操作处理程序 - >过滤器,型号为粘合剂
和的http://wcf.$c$cplex.com/discussions/319671 一>
集成堆栈支持以下功能:
The integrated stack supports the following features:
- 现代HTTP编程模型
- 对于ASP.NET路由全面支持
- 内容协商和自定义格式
- 模型绑定和验证
- 过滤器
- 查询组成
- 易于单元测试
- 通过DependencyResolver控制改进的反转(IoC)
- code型配置。
- 自主机
这篇关于什么WCF的Web API和ASP.NET Web API之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!