Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用embarcadero rad studio 2010和编程语言c++,我们正在.net dll通过WCF Service.
embarcadero rad studio 2010
c++
.net dll
WCF Service
通信是通过 Importing WSDLin完成的embarcadero,我们可以通过 调用服务WSDL。
WSDL
embarcadero
现在我想在服务中触发事件时将响应从服务发送回客户端。我怎样才能做到这一点?
您可以使用 WCF 服务中的回调函数来实现此目的。您必须随时调用主机中的回调函数向客户端发送任何数据。
请访问: https ://docs.microsoft.com/tr-tr/dotnet/framework/wcf/feature-details/how-to-create-a-duplex-contract