O'Reilly logo

Essential Windows Workflow Foundation by Bob Schmidt, Dharma Shukla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4. Advanced Activity Execution

IN THE PREVIOUS CHAPTER, we learned about the basic lifecycle of an activity, which involves the Initialized, Executing, and Closed states of the activity automaton. We also explored the ramifications of the fact that the logical lifetime of activities differs from the lifetimes of CLR objects that transiently represent activities during those times that a WF program instance is not passivated. We developed several useful activities, including a few composite activities, and illustrated the central role of the ActivityExecutionContext as a facilitator of activity execution.

In this chapter, we will give more scrutiny to ActivityExecutionContext and introduce its vital role as a state boundary in WF programs. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required