具有多层 WCF 服务的 MiniProfiler
我有一组相互调用的 WCF 服务,我想使用 MiniProfiler 来分析整个堆栈,一直到使用它们的 MVC 站点。它看起来像这样:
MVC Site ->外观 WCF 服务 ->功能 WCF 服务
我发现这个问题 MvcMiniProfiler 分析 Web 应用程序和较低层并启动并运行。当我尝试在 Facade WCF 服务下方的 Capability WCF 服务中实现此功能时,但我没有得到任何分析信息。
有谁知道这是否可行或者我必须做什么才能让它发挥作用。
I have a set of WCF services that call each other I would like to use the MiniProfiler to profiles the complete stack, right the way down to the MVC site that uses them. It looks something like this:
MVC Site -> Facade WCF Service -> Capability WCF Service
I found this question MvcMiniProfiler profiling web app and lower layers and got it up and running. When I tried to implement this in the Capability WCF Service below the Facade WCF Service but I don't get any profiling info back.
Does anyone has any ideas if this should work or what I have to do to get it to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它应该并且确实可以跨多个 WCF 服务层工作。
要使其正常工作实际上非常简单,并且完全符合您的预期:
按照此处的说明操作MvcMiniProfiler 分析 Web 应用程序和较低层
添加客户端端点以及调用其他 WCF 服务的 WCF 服务中的服务端点的 behaviourConfiguration 属性。
对于要调用的 WCF 服务,请按照上面第 1 步中的“设置 WCF 主机”中的步骤进行操作。
坐下来享受分析的好处。 ;)
Yes it should and does work across multiple layers of WCF service.
To get this to work is actually pretty straight forward and exactly as you might expect:
Follow the instructions here MvcMiniProfiler profiling web app and lower layers
Add the behaviourConfiguration attribute to the client endpoint as well as the service endpoint in the WCF service that calls the other WCF service(s).
Follow the steps in "Setup WCF Host" from step 1 above for the WCF service that is getting called.
Sit back and enjoy the profiling goodness. ;)