Can I host (self host) a WCF Service in a Windows Service and expose it via http?

…衆ロ難τιáo~ 提交于 2020-01-03 10:55:09

问题


I am new to WCF.. is this possible and if its consumed via external web applications is it better go with IIS and http, ie service hosted by an ASP.NET MVC application?


回答1:


Yes, you can host a WCF service in a windows service.

http://msdn.microsoft.com/en-us/library/ms733069.aspx

I'd say that if you can host it in iis it is probably better.



来源:https://stackoverflow.com/questions/9085895/can-i-host-self-host-a-wcf-service-in-a-windows-service-and-expose-it-via-http

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