Windows Workflow Foundation 4.0 中的协议和命名书签有什么区别?
ActivityExecutionContext 具有三种创建书签的方法:CreateBookmark、CreateNamedBookmark 和 CreateProtocolBookmark。
- 哪一个应该用于哪种异步操作?
- 命名书签和协议书签有什么区别?
CreateBookmark()
返回两者中的哪一个?为什么是特殊情况? 从其行为和 .NET Reflector。
An ActivityExecutionContext has three ways of creating bookmarks: CreateBookmark, CreateNamedBookmark and CreateProtocolBookmark.
- Which one is supposed to be used for what kind of asynchronous operation?
- What is the difference between a named and a protocol bookmark?
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前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