How to host both asp.net (for SignalR) and WCF (for netTcpBinding) in single web-role and wire them up to the hosting IIS?

不想你离开。 提交于 2019-12-12 04:45:40

问题


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

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