将相关处理程序事件写入 AppFabric
我正在实施 WF4 服务。我想在 app-fabric 事件日志中查看工作流程实例的相关 ID。基本上我想将自定义消息写入应用程序结构。到目前为止我已经使用了这段代码但没有结果,
protected override Contract1 Execute(CodeActivityContext context)
{
//...........
CustomTrackingRecord record=new CustomTrackingRecord(context.WorkflowInstanceId,"test record...",TraceLevel.Info);
context.Track(record);
//..........
}
I'm implementing a WF4 service. I want to see the correlation Id of my workflow instance in app-fabric event log. Basicaly I want to write custom message to app fabric. So far I have used this code but no results,
protected override Contract1 Execute(CodeActivityContext context)
{
//...........
CustomTrackingRecord record=new CustomTrackingRecord(context.WorkflowInstanceId,"test record...",TraceLevel.Info);
context.Track(record);
//..........
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能够通过配置跟踪配置文件来完成我的要求。在欺骗配置文件中,我添加了跟踪变量。我是这样做的。
有关暗示的更多细节。 http://codetuner.blogspot.com/2012/02 /workflow-foundation-4-app-fabric.html
I was able accomplish my requirement by configuring tracking profile. In tricking profile I have added tracking variables. Here is how I did it.
More details about the implimntation. http://codetuner.blogspot.com/2012/02/workflow-foundation-4-app-fabric.html
我敢打赌这里的代码可以很好地发出跟踪,但您需要将 AppFabric 配置为跟踪参与者才能接收这些跟踪。
I'll bet the code here is emitting tracking just fine, but you'll need to configure AppFabric to be a tracking participant to pick those up.