.NET Remoting - 如何对所有连接的客户端进行回调?

发布于 2024-08-07 06:31:13 字数 338 浏览 2 评论 0原文

我正在研究 .NET Remoting,我在 .NET 2.0 中的远程回调和事件,一个简单示例。一切都很好。 现在我的问题是,如果我尝试启动另一个客户端,服务器不会回调所有连接到它的客户端,而只会回调最后一个客户端。 如何向所有客户发送回调?

I'm studying .NET Remoting and I see an example on Remoting callbacks and events in .NET 2.0, A simple example. All works good.
Now my problem is if I try to start another client, the server doesn't callback to all clients connected to it but only to the last one.
How can I send callback to all clients?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离笑几人歌 2024-08-14 06:31:13

.NET Remoting 现已被 Windows Communication Foundation (WCF) 取代,后者是 . NET框架3.0。您应该使用 WCF 而不是远程处理。

阅读教程,了解如何在 WCF 中使用回调:

.NET Remoting is now superseded by Windows Communication Foundation (WCF), which is part of the .NET Framework 3.0. You should use WCF instead of Remoting.

Read this tutorial, on how to work with callbacks in WCF:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文