问题
How do I host both asp.net
(to use SignalR
w/ Azure's backplane) and WCF
service (for fast binary netTcpBinding
) in web-role (extreme budget issues...)?
I suppose both must be self-hosted, but how to wire up each of them to the hosting IIS
in the VM (I believe they both reside in the same app-domain)?
(It's a continuation of "Is it possible to host both web/SignalR and WCF w/ netTcpBinding in a single web-role?")
回答1:
If you're self hosting your apps, you do not use IIS and could go with a Worker Role (VM without IIS). That would have the applications running in separate processes - hence different app-domains. You sepcify the listening port of you asp.net application in the OWIN start method - e.g. Microsoft.Owin.Hosting.WebApp.Start("http://localhost:8080")
来源:https://stackoverflow.com/questions/34811555/how-to-host-both-asp-net-for-signalr-and-wcf-for-nettcpbinding-in-single-web