WorkflowRuntime.IsStarted Property
Gets a value that indicates whether the workflow run-time engine has been started.
Namespace: System.Workflow.Runtime
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Property Value
Type: System.Booleantrue if the workflow run-time engine has been started; otherwise, false. The default is false.
IsStarted indicates that the workflow run-time engine services are running. 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 run-time engine while it is running. Core services are services that derive from the WorkflowSchedulerService class, the DefaultWorkflowCommitWorkBatchService class, the WorkflowPersistenceService class, and the TrackingService class. |
The following example demonstrates how to access the IsStarted property of a WorkflowRuntime object. In this example, if the runtime is started, a message is printed to the console.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note