如何从WorkflowApplication访问扩展 [英] How access extension from WorkflowApplication

查看:114
本文介绍了如何从WorkflowApplication访问扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Beta2 WorkflowApplication.GetExtension< T>中受保护(请参见类定义).是虫子吗?我在文档中发现此方法必须是公开的.我如何从WorkflowApplication访问自定义服务(扩展名).在Beta1中,它没有问题.我可以访问WorkflowRuntime作为另一个解决方案吗?

注意事项,
Alexey

In Beta2 WorkflowApplication.GetExtension<T> is protected (see in class definition). Is it Bug? I found in documentation that this method has to be public. How I can access custom service (extension) from WorkflowApplication. In Beta1 it was without problems. Can I access WorkflowRuntime as another solution?

Regards,
Alexey

推荐答案

您好,
为什么要访问从WorkflowApplication扩展?通常,添加的扩展注定要在活动上下文中使用. Execute方法(CodeActivity和NativeActivity)具有一个上下文参数,该参数公开了GetExtension< T>.

希望对您有所帮助.
Hi,
why are you accessing extensions from WorkflowApplication? Usually, the added extensions are destinated to be used in an activity context. The Execute method (CodeActivity and NativeActivity) have one context parameter that exposes a GetExtension<T>.

Hope this helps.


这篇关于如何从WorkflowApplication访问扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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