Windows Workflow Foundation 4.0 中的协议和命名书签有什么区别?

发布于 2024-07-27 05:44:49 字数 347 浏览 3 评论 0原文

ActivityExecutionContext 具有三种创建书签的方法:CreateBookmark、CreateNamedBookmark 和 CreateProtocolBookmark。

  1. 哪一个应该用于哪种异步操作?
  2. 命名书签和协议书签有什么区别?
  3. CreateBookmark() 返回两者中的哪一个?为什么是特殊情况? 从其行为和 .NET Reflector。

An ActivityExecutionContext has three ways of creating bookmarks: CreateBookmark, CreateNamedBookmark and CreateProtocolBookmark.

  1. Which one is supposed to be used for what kind of asynchronous operation?
  2. What is the difference between a named and a protocol bookmark?
  3. Which of the two does CreateBookmark() return and why the special case? It appears to behave like an named bookmark only without the name part judging from its behavior and .NET Reflector.

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

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

发布评论

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

评论(1

紫竹語嫣☆ 2024-08-03 05:44:49

目前BETA 1刚刚发布,到目前为止我只看到了异步操作的createNamedBookmark的示例。

http://msmvps.com/blogs/theproblemsolver/archive/2009/07/15/more-asynchronous-work-in-windows-workflow-foundation-4.aspx

MSDN 没有该协议的文档框架,所以我想目前只有 WF Core 团队可以回答你的问题。 否则,您将不得不等到下一个版本。

http://msdn。 microsoft.com/en-us/library/system.activities.activityexecutioncontext.createprotocolbookmark%28VS.100%29.aspx

As of now BETA 1 is just released, and so far I have seen only examples of createNamedBookmark for asynchronous operation.

http://msmvps.com/blogs/theproblemsolver/archive/2009/07/15/more-asynchronous-work-in-windows-workflow-foundation-4.aspx

There is no documentation from MSDN for the protocol framework, so I guess only WF Core team could answer your question as of now. Otherwise, you will have to wait till the next release.

http://msdn.microsoft.com/en-us/library/system.activities.activityexecutioncontext.createprotocolbookmark%28VS.100%29.aspx

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