WCF Exception Handling Strategies

后端 未结 3 2021
予麋鹿
予麋鹿 2020-12-24 02:20

We are developing a proxy in WCF that will serve as a means of communication for some handhelds running our custom client application. I am curious what error handling stra

3条回答
  •  醉梦人生
    2020-12-24 02:58

    You might find the IErrorHandler interface useful here. We've been using this to do pretty much what you mention - centralised exception logging and providing generalised fault reasons without having to litter the code with numerous try/catches to try and deal with the problem locally.

提交回复
热议问题