不同类型的托管WCF应用程序及其优势 [英] Different Types of Hosting WCF application and there advantages
问题描述
可以完成不同类型的托管.
There are different types of Hosting can be done.
-
windows处理激活服务(WAS)
windows process activation services (WAS)
IIS
自动托管
在Windows服务中托管
Hosting in a Windows service
使用一个相对于另一个有优势吗?哪一个更可取?
is there advantage of using one over another? which one is preferable?
推荐答案
This and this can help. But basically:
1)IIS现在使用WAS
1) IIS now using WAS
2)IIS托管.优点:通常不需要托管代码,易于维护,IIS基础结构(安全性,会话,站点集成等).缺点:被动"服务,需要IIS.
2) IIS hosting. Pros: generally no hosting code required, easy to maintain, IIS infrastructure (security, sessions, site integration etc). Cons: 'passive' services, require IIS.
3)自托管.优点:调试方便.缺点:没有基础设施,要求.自定义托管代码,交互式用法(通常来说).
3) Self hosting. Pros: easy debugging. Cons: no infrastructure, req. custom hosting code, interactive usage (generally speaking).
4)托管Windows服务.优点:对于活动",长期运行的服务,服务基础结构(启动/停止/暂停,无人值守(非交互式)执行,依赖项,MMC等),相对易于管理.缺点:要求.自定义托管代码,相对较难调试(相对于IIS托管).
4) Hosting in a Windows service. Pros: for 'active', long running services, services infrastructure (start/stop/pause, unattended (non interactive) execution, dependencies, mmc etc), relatively easy to manage. Cons: req. custom hosting code, relatively hard to debug (vs IIS hosting).
这篇关于不同类型的托管WCF应用程序及其优势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!