【问题标题】:.NET Remoting - How to do a callback to all connected clients?.NET Remoting - 如何对所有连接的客户端进行回调?
【发布时间】:2009-10-05 02:14:24
【问题描述】:

我正在学习.NET Remoting,我在Remoting callbacks and events in .NET 2.0, A simple example 上看到了一个例子。一切正常。 现在我的问题是,如果我尝试启动另一个客户端,服务器不会回调连接到它的所有客户端,而只会回调最后一个客户端。 如何向所有客户端发送回调?

【问题讨论】:

    标签: c# .net remoting .net-remoting


    【解决方案1】:

    .NET Remoting 现在被 Windows Communication Foundation (WCF) 取代,它是 .NET Framework 3.0 的一部分。您应该使用 WCF 而不是 Remoting。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多