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.
我有一个 WCF 项目,它处理我来自 flex 应用程序的所有请求。该项目有大约 30 种方法。处理所有异常的最佳做法是什么?在大多数情况下,它仅用于记录。使用 try/catch 扭曲每种方法(并且可能有更多的数据用于记录)或在一个地方处理?
通常你想实现 IErrorHandler 接口来处理未处理的异常。查看这篇文章了解更多详细信息IErrorHandler 接口