In WCF, is there an event or method that catches unhandled exceptions, or do I need to put a try/catch in any method?
Yes, create a class that implements the IErrorHandler
interface:
Allows an implementer to control the fault message returned to the caller and optionally perform custom error processing such as logging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With