为什么我的自定义活动永远不会返回?
我是 WF 的新手,很迷茫。到目前为止,这是我所拥有的:
我创建了一个工作流服务应用程序(xamlx),添加了所需的变量 我创建了一个自定义 NativeActivity,在其中从 Execute 中调用 CreateBookmark,该函数位于 Receive 和 Receive 之间。发送服务的活动。 (最终,除了创建书签之外,这实际上还会做一些事情)。
书签创建得很好,但退出 Execute 方法后,一分钟内没有任何反应,直到服务超时,给我这条消息“请求通道在 00:00:59.9699970 之后等待回复时超时。增加传递给 Request 调用的超时值或增加 Binding 上的 SendTimeout 值 分配给此操作的时间可能是较长超时的一部分。” (我尝试发布 xamlx 的图像,但作为新手,它不会让我这样做;只需说我正在从 Receive 进入我的自定义本机活动,但从未达到 SendReply)。
我认为我错过了一些相当基本的东西,但我看不出是什么。我最初尝试使用 NativeActivity
I'm a newbie to WF and rather lost. Here's what I have so far:
I've created a workflow service app (xamlx), added needed variables
I've created a custom NativeActivity where I'm calling CreateBookmark from within Execute, which is between the Receive & Send activity for the service. (Ultimately this will actually do something besides creating the bookmark).
The bookmark gets created just fine, but after stepping out of the Execute method, nothing happens for one minute until the service times out, giving me that message "The request channel timed out while waiting for a reply after 00:00:59.9699970. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout." (I tried posting an image of the xamlx, but as a newbie it won't let me; suffice it to say I'm getting from my Receive, into my custom native activity, but never getting as far as the SendReply).
I assume I'm missing something rather fundatmental, but I can't see what. I've originally tried using NativeActivity<T> to return what I want, but that behaves the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现我做错了什么:需要使用具有 BookmarkOptions 参数的 CreateBookmark 重载并将其设置为 BookmarkOptions.NonBlocking。
奇怪的是,我没有在任何地方找到提到这一点的例子。
Found out what I was doing wrong: needed to use overload of CreateBookmark that has BookmarkOptions parameter and set it to BookmarkOptions.NonBlocking.
Strangely, I did not find one example anywhere that mentioned this.