Edit

Share via


WorkflowRuntime.StopRuntime Method

Definition

Stops the workflow run-time engine and the run-time services.

public:
 void StopRuntime();
public void StopRuntime();
member this.StopRuntime : unit -> unit
Public Sub StopRuntime ()

Exceptions

The WorkflowRuntime is already disposed of.

Remarks

This method causes the workflow run-time engine to unload each of its workflow instances, stop all of its services that are derived from the WorkflowRuntimeService class, set IsStarted to false, and raise the Stopped event.

To shut down the WorkflowRuntime gracefully, call StopRuntime before you call Dispose.

For more information, see the Dispose method.

Applies to