开发者

How to use WF4 activity to wait for an event?

开发者 https://www.devze.com 2023-01-22 13:58 出处:网络
I found that you can use Pick activity and this activity will contain a few PickBranches, each of which contains a Trigger and an Action. How do I tie the Trigger activity to any .NET event? for exam开

I found that you can use Pick activity and this activity will contain a few PickBranches, each of which contains a Trigger and an Action. How do I tie the Trigger activity to any .NET event? for exam开发者_JAVA百科ple, Timer.Tick event, Key pressed event, or perhaps my own event?


You don't directly. A WF activity can use a bookmark and wait for that bookmark to be resumed. Now you are free to resume a bookmark based on some .NET event or a key press but you still have to code that part.

0

精彩评论

暂无评论...
验证码 换一张
取 消