问题
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