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

老子叫甜甜 提交于 2019-12-12 01:38:53

问题


We have binary WCF service (netTcpBinding) in a web-role and an asp.net website (to take advantage of SignalR over azure's backplane). 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).

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?

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?"


回答1:


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?

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



来源:https://stackoverflow.com/questions/34793177/is-it-possible-to-host-both-web-signalr-and-wcf-w-nettcpbinding-in-a-single-web

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