问题
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