我应公开行动,而不是事件? [英] Should I expose Actions instead of events?

查看:111
本文介绍了我应公开行动,而不是事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与WF 4.0工作时,我注意到,WorkflowApplication类公开操作属性(已中止,完整,等...),而不是事件。
是否有一个具体的原因是什么?我什么时候应该更喜欢动作属性而不是事件?

while working with WF 4.0 I noticed that the WorkflowApplication class exposes action properties (Aborted, Complete, etc...) instead of events. Is there a specific reason? When should I prefer action properties instead of events?

感谢您

推荐答案

我发了电子邮件给WF团队中的一员,并亲切,他回答我。
他告诉我,事件和行动几乎是等价的,但球队不得不用行动API更好的感觉。

I sent an email to one member of the WF team and, kindly, he answered me. He told me that events and actions are almost equivalent, but the team had better feeling with the API using actions.

这篇关于我应公开行动,而不是事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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