Creating A Global Error Handler In WCF
One of the key things in any application is to have an exception handler that logs any unhandled exception so that the application can be debugged in the future. In many applications I see this done by wrapping every external method in a try / catch block. While this works it has several drawbacks. First of all it is a pain to type the same code over and over again. It is easy to forget to add the try / catch / log block one one method. The biggest pain is if you need to change the way...