WorkflowRuntime.Started 이벤트


워크플로 런타임 엔진이 시작될 때 발생합니다.Occurs when the workflow run-time engine is started.

 event EventHandler<System::Workflow::Runtime::WorkflowRuntimeEventArgs ^> ^ Started;
public event EventHandler<System.Workflow.Runtime.WorkflowRuntimeEventArgs> Started;
member this.Started : EventHandler<System.Workflow.Runtime.WorkflowRuntimeEventArgs> 
Public Event Started As EventHandler(Of WorkflowRuntimeEventArgs) 


다음 예제에서는 이벤트 처리기가 StartedWorkflowRuntime 이벤트에 추가됩니다.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."); });
' Create a new workflow runtime
Dim startingRuntime As New WorkflowRuntime()
' Add a method as the event handler for the Started event.
AddHandler startingRuntime.Started, AddressOf RuntimeStarted


StartRuntime 메서드를 발생 시킵니다 합니다 Started 이벤트가 워크플로 런타임 엔진의 핵심 서비스 구성 유효성 검사가 완료 후 호출에 Start 각에서 파생 되는 서비스에서 구현 하는 메서드를 WorkflowRuntimeService 클래스 설정 IsStartedtrue입니다.The StartRuntime method raises the Started event after it has validated the core service configuration of the workflow run-time engine, has invoked the Start method implemented by each of its services that derive from the WorkflowRuntimeService class, and has set IsStarted to true. 워크플로 런타임 엔진이 WorkflowRuntimeService 클래스에서 파생된 서비스를 시작하는 순서는 경우에 따라 달라지며, 이러한 워크플로 런타임 엔진 서비스 중 일부는 다른 서비스가 제공하는 기능이 있어야만 시작 작업을 완료할 수 있습니다.There is no guarantee about the order in which the services that derive from the WorkflowRuntimeService class are started by the workflow run-time engine, and some of these workflow run-time engine services may depend on functionality supplied by other of these services to complete their startup tasks. 워크플로 런타임 엔진 서비스는 WorkflowRuntimeService.OnStarted 이벤트가 발생할 때 다른 워크플로 런타임 엔진 서비스의 지원이 필요한 최종 시작 작업을 수행하기 위해 Started 메서드를 재정의할 수 있습니다.Workflow run-time engine services can override the WorkflowRuntimeService.OnStarted method to perform any final startup tasks that require the support of other workflow run-time engine services when the Started event is raised.

이벤트를 처리 하는 방법에 대 한 자세한 내용은 이벤트 처리 및 발생을 참조 하세요.For more information about handling events, see Handling and raising events.

적용 대상