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.
来源:https://stackoverflow.com/questions/7927082/wcf-health-monitoring-similar-to-asp-net