开发者

WCF - Send callback without a Clientcall

开发者 https://www.devze.com 2023-02-18 19:37 出处:网络
I use a DuplexChannelFactory to send callbacks to my clients. I would like to send those callbacks before a client call was made.

I use a DuplexChannelFactory to send callbacks to my clients. I would like to send those callbacks before a client call was made.

In other words the moment a Channel is opened via DuplexChannelFactory.CreateChannel() I wish to send a Callback to the client that ju开发者_运维问答st opened this channel.

Any Ideas?


You can't because you don't have callback channel available in the service. Client must be the one who initiate communication. Moreover I'm almost sure (I didn't checked it) that CreateChannel doesn't open the connection but the first client call does.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号