开发者

How to heal a callback channel?

开发者 https://www.devze.com 2023-02-13 15:38 出处:网络
If a WCF channel is faulted we can dispose the current connection and reopen it. But if a callback connection drops, I can\'t see no way of healing it, except if the client pools the server constantly

If a WCF channel is faulted we can dispose the current connection and reopen it. But if a callback connection drops, I can't see no way of healing it, except if the client pools the server constantly.

Is it possib开发者_开发知识库le to dispose and reopen a callback channel?


As far as I know it is not possible. You may have to prevent the channel from ending up in the Faulted state:

  • All service exceptions must be wrapped into FaultExceptions (check the IErrorHandler interface) and properly handled on the client as well
  • If the client channel is closed then there is nothing you can do about it.
0

精彩评论

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