简体   繁体   English

c#wcf从另一个客户端调用客户端回调

[英]c# wcf calling client callback from another client

I have wcf project with duplex contracts where i can invoke callback methods resident in clients app from the service. 我有带有双工合同的wcf项目,在这里我可以从服务中调用驻留在客户端应用程序中的回调方法。 I am wondering if i have a way to invoke clients callback methods from another client directly . 我想知道是否有一种方法可以直接从另一个客户端调用客户端回调方法。 I am thinking of getting the callback variable from the service and invoke the callback method using it. 我正在考虑从服务获取回调变量并使用它调用回调方法。 is this approach working, or any other idea? 这种方法行得通吗,还是有其他想法?

听起来您正在尝试广播: http : //www.codeproject.com/Articles/596287/Broadcasting-Events-with-a-Duplex-WCF-Service还是在其他情况下您想这样做?

.Net Remoting may be helpful for you,check this code project link .Net Remoting可能对您有所帮助,请检查此代码项目链接

.NET Remoting with an easy example .NET Remoting的一个简单示例

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM