这节讨论托管WCF的不同方式。WCF服务无法自己存在,
它必须托管在windows的进程里。这样的进程叫做托管进程(或者宿主进程)。
主要有四种方式托管WCF服务。
-
IIS 托管
-
自托管
-
WAS托管
-
Windows服务托管
WCF支持多种不同的托管和协议。
| 托管环境 |
支持的协议 |
|---|---|
| Windows console/ form application |
HTTP,net.tcp,net.pipe,net.msmq |
| Windows service application (formerly known as NT services) |
HTTP,net.tcp,net.pipe,net.msmq |
| Web server IIS6 |
http, wshttp |
| Web server IIS7 - Windows Process Activation Service (WAS) |
HTTP,net.tcp,net.pipe,net.msmq |
各种托管支持的特性。
| 特性 |
自托管 |
IIS 托管 |
WAS 托管 |
|---|---|---|---|
| Executable Process/ App Domain |
Yes |
Yes |
Yes |
| Configuration |
App.config |
Web.config |
Web.config |
| Activation |
Manual at startup |
Message-based |
Message-based |
| Idle-Time Management |
No |
Yes |
Yes |
| Health Monitoring |
No |
Yes |
Yes |
| Process Recycling |
No |
Yes |
Yes |
| Management Tools |
No |
Yes |
Yes |
欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 572064792 | Nodejs:329118122 做人要厚道,转载请注明出处!
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/sunshine-anycall/archive/2011/01/25/1944955.html
,如需转载请自行联系原作者