WorkflowRuntime.Started 이벤트

정의

워크플로 런타임 엔진이 시작될 때 발생합니다.

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

이벤트 유형

예제

다음 예제에서는 이벤트 처리기가 StartedWorkflowRuntime 이벤트에 추가됩니다. 이 예제에서 처리기는 단순한 메시지를 콘솔에 표시하는 익명 메서드입니다.

// 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입니다. 워크플로 런타임 엔진이 WorkflowRuntimeService 클래스에서 파생된 서비스를 시작하는 순서는 경우에 따라 달라지며, 이러한 워크플로 런타임 엔진 서비스 중 일부는 다른 서비스가 제공하는 기능이 있어야만 시작 작업을 완료할 수 있습니다. 워크플로 런타임 엔진 서비스는 WorkflowRuntimeService.OnStarted 이벤트가 발생할 때 다른 워크플로 런타임 엔진 서비스의 지원이 필요한 최종 시작 작업을 수행하기 위해 Started 메서드를 재정의할 수 있습니다.

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생을 참조하세요.

적용 대상