Is it possible to host a WCF service in an Azure WebRole (MVC)

陌路散爱 提交于 2019-12-10 21:48:18

问题


Is it possible to host a WCF service in an Azure WebRole (MVC)?

Also; I assume that net.tcp is not supported.


回答1:


And you're correct that net.tcp won't work in a web role (where all input endpoints have to be HTTP). But net.tcp should work fine in a worker role.




回答2:


Yes.

It's often a little easier to host your WCF services in a web project. Especially when you have multiple WCF Services.



来源:https://stackoverflow.com/questions/2926737/is-it-possible-to-host-a-wcf-service-in-an-azure-webrole-mvc

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