WCF Health Monitoring similar to ASP.NET

2019-04-13 05:58发布

问题:

ASP.NET has a nice feature called Health Monitoring. Once defined in system.web/healthMonitoring section we get very useful web events to log/analyze. Are there any similar means for WCF services that don't use ASP.NET compatibility mode and hosted under IIS7/WAS ?

Update: What i've found out is that enabling system.web/healthMonitoring in WCF service's web.config allows to get some of web events: System.Web.HttpRuntime, 1002, "Application is shutting down. Reason: Configuration changed.". No heartbeats and others. I don't understand how that works if ASP.NET is not involved in the process but that's the fact.

回答1:

Please go through below links. Not sure what exactly you are asking.

Link 1

Link 2

Link 3



回答2:

You can add some configuration to the config file of the client and will have a lot of logging information. check the below links

  • link1
  • link2