Is there a global scope for error handling in WCF comparable to Global.asax Application_Error in ASP.Net?

I am creating a WCF service and I need to implement error handling. ASP.Net managed to centralize error handling in the Application_Error event handler in the global.asax file.

Is there a comparable solution for WCF other than aspnet compatibility mode? I cannot use aspNetCompatibilityEnabled because transport is not guaranteed by Http.

thanks

+4
source share

Source: https://habr.com/ru/post/1309447/


All Articles