具有Appfabric自定义事件的WCF获取新的ActivityId. [英] WCF with Appfabric custom event gets a new ActivityId.

查看:72
本文介绍了具有Appfabric自定义事件的WCF获取新的ActivityId.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF服务,该服务配置为在启用了AppFabric的IIS中运行.

I have a WCF service that is configured to run in IIS with AppFabric enabled.

发出请求时,我可以看到事件正在AppFabric中显示.

When I make a request I can see that the events are showing up in AppFabric.

如果我添加一个IDispatchMessageInspector作为端点行为,并通过帮助类"WCFUserEventProvider"将其写入到appfabric日志中,我看到该条目已添加到AppFabric,但它与初始请求无关.缺点是 通过右键单击初始请求条目-> ;,我无法通过AppFabric GUI找到自定义日志条目.查看所有相关事件.

If I add an IDispatchMessageInspector as a endpoint behaviour and write to the appfabric log via the help class "WCFUserEventProvider" I see that the entry is added to AppFabric but it's not correlated to the initial request. The downside is that I cannot find the custom-log entry via the AppFabric GUI by right clicking on the initial request entry -> View All Related Events.

为什么更改了ActivityId,为什么自定义项与初始AppFabric请求不相关?

Why is the ActivityId changed and why isn't the custom-entry related to the initial AppFabric request?

在web.config中,我已启用:

In the web.config I've enabled:

<诊断etwProviderId ="edbfb34f-9947-4fe3-bc21-4d4759bc0d33''>
      < endToEndTracing broadcastActivity ="true"; messageFlowTracing ="true". />
    </diagnostics>

<diagnostics etwProviderId="edbfb34f-9947-4fe3-bc21-4d4759bc0d33">
      <endToEndTracing propagateActivity="true" messageFlowTracing="true" />
    </diagnostics>

推荐答案

嗨Alverdal,

您能否与我们分享一个完整的项目,该项目可以通过OneDrive重现您的问题?我在IIS中配置了AppFabric,并使用简单的WCF服务进行了测试,但无法查看所有相关事件.

如果您可以与我们分享详细的步骤来重现您的问题,将会很有帮助.

最好的问候

爱德华


这篇关于具有Appfabric自定义事件的WCF获取新的ActivityId.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆