0

I want to be able to log WCF Timeouts that happen server side. I don't see any hooks that are helpful to me, or any automated way to let server timeouts be logged. Is there a way I can hook into WCF Calls to see when they are cancelled or timeouted, so I can log via AppInsights or log4net?

private_meta
  • 561
  • 4
  • 19
  • Have a look at this [answer](https://stackoverflow.com/a/1520356/5519709) – Selim Yildiz Mar 20 '20 at 11:45
  • Thanks, already looked through that, didn't find an answer in there that helped me, or rather got anywhere close to logging or timeout hooks. – private_meta Mar 20 '20 at 12:53
  • The WCF trace and IErrorhandler interfaces are used to catch and log server-side exceptions. https://stackoverflow.com/questions/60190222/provide-exceptions-for-wcf-webhttpbinding/60220479#60220479 https://learn.microsoft.com/en-us/dotnet/framework/wcf/diagnostics/tracing/configuring-tracing https://learn.microsoft.com/en-us/dotnet/framework/wcf/samples/tracing-and-message-logging – Abraham Qian Mar 24 '20 at 03:19

0 Answers0