WCF Health Monitoring similar to ASP.NET

2019-04-13 06:05发布

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.

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-04-13 06:31

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

Link 1

Link 2

Link 3

查看更多
姐就是有狂的资本
3楼-- · 2019-04-13 06:40

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

查看更多
登录 后发表回答