Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WorkflowRuntime.Started Event

Occurs when the workflow runtime engine is started.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)
public event EventHandler<WorkflowRuntimeEventArgs> Started

The StartRuntime method raises the Started event after it has validated the core service configuration of the workflow runtime engine, has invoked the Start method implemented by each of its services that derive from the WorkflowRuntimeService class, and has set IsStarted to true. There is no guarantee about the order in which the services that derive from the WorkflowRuntimeService class are started by the workflow runtime engine, and some of these workflow runtime engine services may depend on functionality supplied by other of these services in order to complete their startup tasks. Workflow runtime engine services can override the WorkflowRuntimeService.OnStarted method in order to perform any final startup tasks that require the support of other workflow runtime engine services when the Started event is raised.

For more information about handling events, see Consuming Events.

In the following example, an event handler is added to the Started event of the WorkflowRuntime. In this example, the handler is an anonymous method that prints a simple message to the console.

// Create a new workflow runtime
WorkflowRuntime startingRuntime = new WorkflowRuntime();
// Add an anonymous method as the event handler for the Started event.
startingRuntime.Started += new EventHandler<WorkflowRuntimeEventArgs>(
    delegate { Console.WriteLine("Workflow runtime started."); });

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.