A Closer Look at the WorkflowRuntime Object

Now that we have an instance of WorkflowRuntime created in our WorkflowHost application, it’s time to take a brief look at how we interact with this object. Like most useful objects, WorkflowRuntime exposes a set of methods and properties we use to control the workflow runtime environment. Table 2-1 lists all the WorkflowRuntime properties, while Table 2-2 lists the methods we typically use.

Table 2-1. WorkflowRuntime Properties

Property

Purpose

IsStarted

Used to determine whether the workflow runtime has been started and is ready to accept workflow instances. IsStarted is false until the host calls StartRuntime. It remains true until the host calls StopRuntime. Note you cannot add core services to the workflow ...

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.