WorkflowRuntime Constructor ()
Initializes a new instance of the WorkflowRuntime class.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
The WorkflowRuntime is initialized with the default property values and contains the default core services. To additionally configure the workflow run-time engine, you can add and remove services by using AddService and RemoveService, and you can set Name. After the WorkflowRuntime is configured, call StartRuntime to start the workflow run-time engine and its services.
The following table shows initial property values for an instance of WorkflowRuntime class.
Property | Initial Value |
|---|---|
"WorkflowRuntime" | |
false |
The default core services are DefaultWorkflowCommitWorkBatchService and DefaultWorkflowSchedulerService.
The following code example demonstrates how you can use WorkflowRuntime functionality from a workflow host. It provides an example of how to use the WorkflowRuntime constructor to create an instance of a WorkflowRuntime and access its methods and events.
This code example is part of the Canceling a Workflow sample.
Available since 3.0