首页 > Windows开发 > 详细

Castle学习系列(十一)---Windsor性能检测

时间:2015-03-15 16:52:33      阅读:445      评论:0      收藏:0      [点我收藏+]
       Windsor提供了容器性能检测的功能,只需在程序启动的时候后添加一下代码
var diagnostic = LifecycledComponentsReleasePolicy.GetTrackedComponentsDiagnostic(_container.Kernel);
var counter = LifecycledComponentsReleasePolicy.GetTrackedComponentsPerformanceCounter(new PerformanceMetricsFactory());
_container.Kernel.ReleasePolicy = new LifecycledComponentsReleasePolicy(diagnostic, counter);

其中_container是你的IOC容器。


     然后右键点击计算机->管理出现如下界面

技术分享


点击+来添加Castle Windsor的性能监控。

Castle学习系列(十一)---Windsor性能检测

原文:http://blog.csdn.net/eye_cng/article/details/44277703

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!