WorkflowRuntime.StopRuntime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.