Using the Listen Activity

If saying EventDriven acts like a sequential activity is a reasonable statement, it’s also fair to say the Listen activity acts like a parallel activity. Listen is a container for two or more EventDriven activities. Which of the two (or more) EventDriven activity paths is selected depends entirely on which one receives an event first. Once one handles an event, however, none of the other, parallel, EventDriven activity paths will be executed. Those activities cease waiting for their respective events, and the sequential execution path continues down the EventDriven activity that handled the event. As with the EventDriven activity, there are no interesting properties or methods outside those exposed by the Activity base ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.