WCF服务应用程序与网站WCF服务 [英] difference between WCF Service Application & Website WCF Service

查看:73
本文介绍了WCF服务应用程序与网站WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010中,有两个选项可用于创建WCF服务。第一个是File |新的|项目...... | WCF | WCF服务应用程序。第二个是通过File |新的|网站... | Visual C#| WCF服务。他们两个看起来都一样。两个项目之间究竟有什么区别?

In Visual Studio 2010, there are two options to create a WCF Service. The first one is File | New | Projects... | WCF | WCF Service Application. The second one is via File| New | Web Site... | Visual C# | WCF Service. Both of them looks like the same. What exactly are the differences between the two projects?

推荐答案

一个托管在IIS中,另一个是自托管的,如在可执行文件中。除了它们如何托管之外,两者之间没有区别,你可以编写相同的代码。
One is hosted in IIS and the other is self hosted, as in an executable file. Except for how it''s hosted there''s no difference between the two, you would write the same code.


这篇关于WCF服务应用程序与网站WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆