控制 WF 持久点事务

发布于 2024-07-13 07:02:08 字数 237 浏览 4 评论 0原文

我正在使用WF,需要支持事务和持久化。 我不想使用 TransactionScopeActvity ,而是使用我自己的事务范围对象,并且最后仍然有一个持久点,它将成为活动本身事务的一部分(类似于 TransactionScopeActvity 在这方面的工作方式)。 我可以通过使用“PersistOnClose”属性在事务结束时实现持久化点,但是持久化调用属于哪个事务呢? 它会打开一个新交易,还是寻找环境交易? 如何确保持久化点激活时存在环境事务?

I am using WF, and need to support transactions and persistence.
I would like not to use the TransactionScopeActvity , but use my own transaction scope object, and still have a persistence point at the end which will be part of the transaction in the activity itself (similar to how the TransactionScopeActvity works on this aspect). I can achieve a persistence point at the end of the transaction by using the "PersistOnClose" attribute, but to what transaction will the persistence call belong to? will it open a new transaction, or look for the ambient transaction? How can I assure that an ambient transaction exists when the persistence point is activated?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

窗影残 2024-07-20 07:02:08

版本 3 和 3.5 不支持环境事务 我在围绕此进行设计时遇到了很多问题 在新版本的工作流程中,即 4.0(从头开始完全重写)支持环境事务

Version 3 and 3.5 does not support ambient transaction I faced a lot of Issues designing around this In the new version of workflow i.e. 4.0 (which is complete rewrite from ground up ) supports Ambient Transaction

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文