https://www.tutorialspoint.com/wcf/wcf_hosting_service.htm

After creating a WCF service, the next step is to host it so that the client applications can consume it. This is known as WCF service hosting. A WCF service can be hosted by using any of the four ways given below:

在创建wcf服务后,下一个步骤就是托管该服务,确保客户端应用可以使用它。这也被称为wcf服务托管。wcf服务可以使用下面4种中的任一一种方式进行托管

  • IIS Hosting - IIS stands for Internet Information Services. Its working model is similar to that of ASP.NET while hosting a WCF service. The best feature of IIS hosting is that the service activation is processed automatically. IIS hosting also offers process health monitoring, idle shutdown, process recycling, and many more features to facilitate a WCF service hosting.

  • Self-Hosting - When a WCF service is hosted in a managed application, it is known as self-hosting. It requires a developer to write the requisite coding for ServiceHost initialization. In self-hosting, a WCF service can be hosted in a variety of applications like Console application, Windows form, etc.

  • WAS Hosting - Hosting a WCF service in Windows Activation Service (WAS) is most advantageous because of its features such as process recycling, idle time management, common configuration system, and support for HTTP, TCP, etc.

  • Windows Service Hosting - For local system clients, it is best to host WCF service as a window service and this is known as Window Service Hosting. All the versions of Windows support this type of hosting and here, the Service Control Manager can control the process lifecycle of the WCF service.

IIS托管:互联网信息服务,在托管wcf服务的时候,它的工作模式类似于ASP.NET。IIS托管的最好的特性是:服务激活是自动处理的。IIS托管同样提供进程安全监视,空闲挂断,进程复用,以及许多其他的功能来促进wcf服务托管。

自托管:当一个wcf服务托管在一个托管应用上时,被称为自托管。这就要求开发人员为服务托管初始化编写必要的代码。在自托管中,wcf服务可以托管在许多应用上。比如控制台应用,winform应用等。

WAS托管:将wcf服务托管在windows激活服务上是最有利的,因为它包含如下功能:进程复用,空闲时间管理,公共配置系统,并且支持HTTP和TCP等

windows服务托管:对于本地系统客户端而言,将wcf服务作为windows服务来托管是最好的托管方式。所有版本的windows操作系统都支持这种类型的托管,服务控制管理器可以控制wcf服务的进程的生命周期。

第四个Windows Service的解释,在services.msc的Help的Help topics中找到的

A service is an application type that runs in the system background without a user interface and is similar to a UNIX daemon process.

Services provide core operating system features, such as Web serving, event logging, file  serving, printing, cryptography, and error reporting.

最新文章

  1. 浅谈rem、em、px
  2. ssd硬盘u盘装win7扩展文件时0x80070570错误
  3. JPA学习(6)JPQL
  4. python函数传参是传值还是传引用?
  5. 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
  6. bzoj2125 3047
  7. Postgres的用户认证
  8. 创建以 API 为中心的 Web 应用
  9. ORACLE:plsql优化
  10. openwrt的默认/etc/config/network文件是如何生成的?
  11. CDOJ 1271 Search gold
  12. Confluence 持续集成平台部署记录
  13. bzoj 3626: [LNOI2014]LCA
  14. HQL查询步骤
  15. php 按月创建日志
  16. Android application使用总结
  17. 【Thymeleaf】Thymeleaf模板对没有结束符的HTML5标签解析出错的解决办法
  18. CSS 边框样式
  19. Linux cp命令详解
  20. angularjs的路由ui.router

热门文章

  1. Java——HashMap使用Demo
  2. Tomcat&Servlet笔记
  3. 【IO流】FileInputStream FileOutputStream BufferInputStream BufferOutputStream
  4. 05: jwt原理&使用
  5. JCTF 2014 小菜两碟
  6. 九、LaTex中的浮动体
  7. Solr知识点摘录
  8. MySQL索引优化(索引三表优化案例)
  9. Spring基础08——使用p命名空间
  10. [人工智能]IBM Watson人工智能API|一步步创建智能微信翻译官|第一章