Starting the Workflow Runtime
Of course, no sooner have you created your WorkflowFactory object than I’ll ask you to modify it. I’ve done this intentionally because I wanted to single out how the workflow runtime is started. Referring back to Table 2-2, we see that there is a method called StartRuntime, and making that method call from within our factory object makes a lot of sense. External objects requesting the workflow runtime object (presumably to create new workflow instances) do not need to deal with or worry about the initialization state of the runtime environment. We have a one-stop place to establish the environment as required by our application. The external objects requesting the workflow runtime object can simply use it without ...
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.