WCF WebHttpServiceHostFactory 与 WebServiceHostFactory
WCF 的 WebHttpServiceHostFactory
和 WebServiceHostFactoryhosting
之间有什么区别?
What is the difference between WCF's WebHttpServiceHostFactory
and WebServiceHostFactoryhosting
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您正在讨论新的 WCF Web API 中的 HttpServiceHostFactory - http://wcf.codeplex.com/SourceControl/changeset/view/44d95f912edf#WCFWebApi%2fHttp%2fSrc%2fMicrosoft.ApplicationServer.Http%2fmicrosoft%2fApplicationServer%2fHttp%2fActivation%2fHttpServiceHostFactory.cs - 该工厂使用 WCF 的新 HTTP 管道(位于代码复合体)。 WebServiceHostFactory 使用“传统”WCF REST 样式 API(即随 .NET Framework 3.5 发布并在 4.0 中改进的 API)设置服务/端点。
Assuming that you're talking about the HttpServiceHostFactory from the new WCF Web API - http://wcf.codeplex.com/SourceControl/changeset/view/44d95f912edf#WCFWebApi%2fHttp%2fSrc%2fMicrosoft.ApplicationServer.Http%2fmicrosoft%2fApplicationServer%2fHttp%2fActivation%2fHttpServiceHostFactory.cs - this factory sets up the service / endpoint using the new HTTP pipeline for WCF (which is on codeplex). The WebServiceHostFactory sets up a service / endpoint using the "traditional" WCF REST style API (i.e., the one which was released with .NET Framework 3.5 and improved in 4.0).