[英]How to host both asp.net (for SignalR) and WCF (for netTcpBinding) in single web-role and wire them up to the hosting IIS?
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...)? 如何在网络角色(极端预算问题...)中同时托管asp.net
(以使用带Azure背板的SignalR
)和WCF
服务(用于快速二进制netTcpBinding
)?
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)? 我想两者都必须是自托管的,但是如何将它们分别连接到VM中的托管IIS
(我相信它们都位于同一个应用程序域中)?
(It's a continuation of " Is it possible to host both web/SignalR and WCF w/ netTcpBinding in a single web-role? ") (这是“ 是否可以在单个web角色中同时托管web / SignalR和WCF和netTcpBinding? ”)
If you're self hosting your apps, you do not use IIS and could go with a Worker Role (VM without IIS). 如果您是自托管应用程序,则不使用IIS,而可以使用辅助角色(不带IIS的VM)。 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 - eg Microsoft.Owin.Hosting.WebApp.Start(" http://localhost:8080 ") 您可以使用OWIN启动方法(例如Microsoft.Owin.Hosting.WebApp.Start(“ http:// localhost:8080 ”)来分隔asp.net应用程序的侦听端口
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.