是否可以同时承载网/ SignalR和WCF瓦特/ NetTcpBinding的单一网络的作用是什么? [英] Is it possible to host both web/SignalR and WCF w/ netTcpBinding in a single web-role?

查看:188
本文介绍了是否可以同时承载网/ SignalR和WCF瓦特/ NetTcpBinding的单一网络的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有二进制 WCF 服务( NetTcpBinding的)在Web角色和 asp.net 网​​站(利用 SignalR 过蔚蓝的背板)。由于极低的预算,我们要主持他们两个在Web角色(如网站不允许使用非标准HTTP(S)端口)。

因此​​,它是可行的举办他们两人在网络的作用,以保持SignalR / Web的界面功能,但也使用二进制WCF / NetTcpBinding的模式<? / p>

编辑:

也许我应该问过摆在首位<一个href=\"http://stackoverflow.com/questions/34811555/how-to-host-both-asp-net-for-signalr-and-wcf-for-nettcpbinding-in-single-web\">How主办双方asp.net(用于SignalR)在单一的网络角色和WCF(用于NetTcpBinding的)和它们连接到托管IIS?


解决方案

只要插座绑定不冲突 - 我不明白为什么这不应该是可能的。

在这里看到:
<一href=\"http://stackoverflow.com/questions/17371567/what-default-port-does-wcf-use-for-nettcp-when-hosted-by-iis\">what当IIS托管默认端口并为WCF使用nettcp?

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

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

解决方案

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

这篇关于是否可以同时承载网/ SignalR和WCF瓦特/ NetTcpBinding的单一网络的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆