简体   繁体   English

是否可以在单个web角色中同时托管web / SignalR和WCF和netTcpBinding?

[英]Is it possible to host both web/SignalR and WCF w/ netTcpBinding in a single web-role?

We have binary WCF service ( netTcpBinding ) in a web-role and an asp.net website (to take advantage of SignalR over azure's backplane). 我们在一个Web角色和一个asp.net网站中提供了二进制WCF服务( netTcpBinding )(以通过SignalR来使用Azure的背板)。 Due to the extremely low budget, we want to host them both in a web-role (as website doesn't allow non-standard-HTTP(S) ports). 由于预算极低,我们希望将它们都托管在一个网络角色中(因为网站不允许使用非标准的HTTP(S)端口)。

So is it feasible to host them both in a web-role, to keep the SignalR/web-interface capabilities but also use the binary WCF/ netTcpBinding pattern? 那么将它们既托管在网络角色中,保持SignalR / web接口功能,又使用二进制WCF / netTcpBinding模式,是否可行?

Edit: 编辑:

Maybe I should've asked in the first place " How to host both asp.net (for SignalR) and WCF (for netTcpBinding) in single web-role and wire them up to the hosting IIS? " 也许我应该首先问过“ 如何在单个Web角色中同时托管asp.net(用于SignalR)和WCF(用于netTcpBinding)并将它们连接到托管IIS?

As long as socket binding does not conflict - I cannot see why that should not be possible. 只要套接字绑定不冲突-我不明白为什么不应该这样做。

See here: What default port does WCF use for nettcp when hosted by IIS? 请参阅此处: 由IIS托管时,WCF对nettcp使用哪个默认端口?

https://msdn.microsoft.com/en-us/library/ms731810(v=vs.110).aspx https://msdn.microsoft.com/zh-CN/library/ms731810(v=vs.110).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM