Different Types of Hosting WCF application and there advantages

两盒软妹~` 提交于 2019-12-23 09:38:52

问题


There are different types of Hosting can be done.

  1. windows process activation services (WAS)

  2. IIS

  3. Self hosting

  4. Hosting in a Windows service

is there advantage of using one over another? which one is preferable?


回答1:


This and this can help. But basically:

1) IIS now using WAS

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) Self hosting. Pros: easy debugging. Cons: no infrastructure, req. custom hosting code, interactive usage (generally speaking).

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).



来源:https://stackoverflow.com/questions/15332776/different-types-of-hosting-wcf-application-and-there-advantages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!