简体   繁体   English

我们可以使用wcf WsDualHttpBinding(DUPLEX comm)在asp.net中的两个不同网站之间进行通信吗

[英]Can we use wcf WsDualHttpBinding(DUPLEX comm) for communicating between two different websites in asp.net

I want to make duplex communication ( CHAT like application ) between two different websites in asp.net. 我想在asp.net中的两个不同网站之间进行duplex communication像CHAT这样的应用程序 )。 I have seen lot of demos of duplex communication with two windows application (nettcpbinding) binding. 我已经看到了很多带有两个Windows应用程序(nettcpbinding)绑定的双工通信的演示。

But I want to achieve this with two websites. 但我想通过两个网站实现这一目标。 Can it be achieved? 可以实现吗?

It doesn't make any difference, just as you create a winforms app that has a reference to a WCF service, you can add a reference to your WCF service from your ASP.NET project as well. 这没有什么区别,就像您创建一个具有对WCF服务的引用的Winforms应用程序一样,您也可以从ASP.NET项目中添加对WCF服务的引用。

However, if you want to make a chat like application (generally, any real-time communication with your web users), I recommend taking a look at SignalR . 但是,如果您想进行类似聊天的应用程序(通常是与Web用户的任何实时通信),我建议您看一下SignalR

Update: 更新:
If you're insisting on using WCF for implementing this, take a look at this CodeProject article which explains exactly what you're trying to achieve. 如果您坚持要使用WCF来实现此目的,请查看此CodeProject文章 ,其中准确地解释了您要实现的目标。

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

相关问题 使用双工WCF服务调用结果更新ASP.NET页 - Update an ASP.NET page with Duplex WCF Service Call Result 从异步WCF双工调用更新asp.net页-对象范围-ASP.NET - Updating the asp.net page from the asynchronous WCF duplex call - object scope - ASP.NET NAT,wcf,双工通信……需要一些了解 - NAT , wcf, duplex comm… need some insight 我可以使用 WCF 在 2 个 windows 服务之间进行通信(发送消息)吗? - Can I use WCF for communicating (sending message) between 2 windows service? React 与 Asp.net 核心项目之间的通信 - Communicating between React and Asp.net core project 在Visual Studio解决方案资源管理器中显示这两个图标的ASP.NET网站之间的功能区别是什么? - What is the functional difference between ASP.NET websites displaying these two icons in Visual Studio solution explorer? WCF双工:FatalException在ASP.NET 4.0 Webforms客户端中接收回调 - WCF Duplex: FatalException receiving callback in ASP.NET 4.0 Webforms client 从 ASP.NET 核心 Web Z72664DC0959F3B0C04891F8F7C 消费 WCF 双工服务 - Consuming WCF Duplex Service from ASP.NET Core Web Api 不能在ASP.NET中使用WCF NetPeerTcpBinding? - Can't use WCF NetPeerTcpBinding in ASP.NET? WCF Duplex:将回调发送到特定订阅的ASP.NET Webforms客户端 - WCF Duplex: Send callback to a specific subscribed ASP.NET Webforms client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM