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し、 が に設定IsStartedされた後に イベントをWorkflowRuntimeServicetrue発生させます。 WorkflowRuntimeService クラスから派生した各サービスが開始される順序に関する保証はありません。また、ワークフロー ランタイム エンジンのこれらのサービスによっては、自身の開始タスクを完了するために、これらのサービスのうちの他のサービスが提供する機能に依存する場合があります。 ワークフロー ランタイム エンジンのサービスは、WorkflowRuntimeService.OnStarted イベントが発生したときにワークフロー ランタイム エンジンの他のサービスのサポートを必要とする最終的な開始タスクを実行するように Started メソッドをオーバーライドできます。

イベントの処理の詳細については、「イベントの 処理と発生」を参照してください。

適用対象