AppFabric并通过WorkflowServiceHost动态创建工作流服务 [英] AppFabric and dynamically created workflow services through WorkflowServiceHost

查看:113
本文介绍了AppFabric并通过WorkflowServiceHost动态创建工作流服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据一些商业活动启动不同的工作流程(在数据库中存储为xaml文件),将它们发布为wcf服务并能够调用他们个人。 所以我在运行时加载xaml,我创建了WorkflowServiceHost
对象,并使用我的自定义wcf绑定(基于业务实体密钥的唯一路径)提供它,然后我打开()它。

i need to start different workflows (stored as xaml file in a database) based on some business events, publishing them as wcf services and being able to call them individually.  So i'm loading the xaml at runtime, i create the WorkflowServiceHost object and feed it with my custom wcf binding (unique path based on a business entity key) and then i Open() it.

它实际上有效,但是端点/服务/ wf没有显示在appfabric dashborard中,所以我错过了所有这些虚构的集中功能。

It actually works but the endpoint/service/wf doesnt show up in appfabric dashborard, so i miss all those addictional centralized features.

 我读过那个不支持开箱即用:
http://social.technet .microsoft.com / wiki / contents / articles / appfabric-faq-hosting.aspx
 

 I read that's not supported out of the box: http://social.technet.microsoft.com/wiki/contents/articles/appfabric-faq-hosting.aspx 

" 问:我在WCF AppFabric服务中动态创建端点,但它们没有显示在Endpoints对话框中。

A; AppFabric仅显示在配置文件中显式定义的端点。 AppFabric不显示在代码中定义的端点或运行时假定的端点(例如服务端点和工作流控制端点)。
"

"Q: I am dynamically creating endpoints within my WCF AppFabric service, yet they do not show up in the Endpoints dialog.
A; AppFabric only displays endpoints that are explicitly defined in configuration files. AppFabric does not show the endpoints that are defined in code or those (such as the service endpoint and workflow control endpoint) that are assumed by the runtime.
"

 如何使用某些代码实现此功能?

 How can i achieve this feature with some code ?

谢谢,Valerio

Thanks, Valerio

推荐答案

可能有一些方法可以做到这一点,但都不是很干净。 仅供参考,因为服务/端点没有显示并不意味着监控不起作用。 在应用程序级别检查您的信息中心,您应该会看到所有
WF跟踪和WCF指标都亮起来。 鉴于此,您真正需要多少服务和端点枚举页面? 如果它很关键,我们可以探索一些解决方法。

There may be some ways to do this, but none of them are very clean.  FYI, just because the services/endpoints don't show up doesn't mean that monitoring doesn't work.  Check your dashboard at the application level and you should see all of your WF tracking and WCF metrics lighting up.  Given that, how much do you really need the services and endpoint enumeration pages?  If it is critical, we can explore some workarounds.

谢谢,

Adam


这篇关于AppFabric并通过WorkflowServiceHost动态创建工作流服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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