How to use WF4 activity to wait for an event?
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.
精彩评论