WorkflowRuntime コンストラクター

定義

WorkflowRuntime クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
WorkflowRuntime()

WorkflowRuntime クラスの新しいインスタンスを初期化します。

WorkflowRuntime(String)

アプリケーション構成ファイルの指定したセクションを使用して、 WorkflowRuntime クラスの新しいインスタンスを初期化します。

WorkflowRuntime(WorkflowRuntimeSection)

指定したWorkflowRuntimeの設定を使用して、WorkflowRuntimeSection クラスの新しいインスタンスを初期化します。

WorkflowRuntime()

WorkflowRuntime クラスの新しいインスタンスを初期化します。

public:
 WorkflowRuntime();
public WorkflowRuntime();
Public Sub New ()

注釈

WorkflowRuntimeは既定のプロパティ値で初期化され、既定のコア サービスが含まれています。 さらにワークフロー ランタイム エンジンを構成するには、 AddServiceRemoveServiceを使用してサービスを追加および削除し、 Name設定できます。 WorkflowRuntimeが構成されたら、StartRuntimeを呼び出して、ワークフロー ランタイム エンジンとそのサービスを開始します。

次の表に、 WorkflowRuntime クラスのインスタンスの初期プロパティ値を示します。

財産 初期値
Name "WorkflowRuntime"
IsStarted false

既定のコア サービスは DefaultWorkflowCommitWorkBatchService され、 DefaultWorkflowSchedulerServiceされます。

適用対象

WorkflowRuntime(String)

アプリケーション構成ファイルの指定したセクションを使用して、 WorkflowRuntime クラスの新しいインスタンスを初期化します。

public:
 WorkflowRuntime(System::String ^ configSectionName);
public WorkflowRuntime(string configSectionName);
new System.Workflow.Runtime.WorkflowRuntime : string -> System.Workflow.Runtime.WorkflowRuntime
Public Sub New (configSectionName As String)

パラメーター

configSectionName
String

アプリケーション構成ファイル内の有効な workflowSettings セクションの名前。

例外

configSectionName は null 参照です (Visual Basic では Nothing)。

有効な workflowSettings セクションがアプリケーション構成ファイルに見つかりませんでした。

このアプリケーション ドメインには、 WorkflowRuntime が既に存在します。

注釈

WorkflowRuntimeは、アプリケーション構成ファイルのconfigSectionNameで指定されたセクションの設定に従って初期化されます。 configSectionName は、構成ファイルの有効な workflowSettings セクションに対応している必要があります。

ワークフロー ランタイム エンジンは、アプリケーション構成ファイルを使用して構成されると、構成ファイルの Services セクションに記載されている型のクラスを読み込んでインスタンス化します。 ワークフロー ランタイム エンジンがこれらのクラスを構築すると、次のシグネチャを持つクラス コンストラクターが次の順序で検索されます。

  1. Service(WorkflowRuntime ランタイム、NameValueCollection パラメーター)

  2. Service(WorkflowRuntime ランタイム)

  3. Service(NameValueCollection パラメーター)

  4. Service()

構成ファイルから読み込まれるすべてのサービス クラスは、これらのコンストラクターシグネチャの少なくとも 1 つを実装する必要があります。

詳細については、WorkflowRuntimeSectionを参照してください。

適用対象

WorkflowRuntime(WorkflowRuntimeSection)

指定したWorkflowRuntimeの設定を使用して、WorkflowRuntimeSection クラスの新しいインスタンスを初期化します。

public:
 WorkflowRuntime(System::Workflow::Runtime::Configuration::WorkflowRuntimeSection ^ settings);
public WorkflowRuntime(System.Workflow.Runtime.Configuration.WorkflowRuntimeSection settings);
new System.Workflow.Runtime.WorkflowRuntime : System.Workflow.Runtime.Configuration.WorkflowRuntimeSection -> System.Workflow.Runtime.WorkflowRuntime
Public Sub New (settings As WorkflowRuntimeSection)

パラメーター

例外

settings は null 参照です (Visual Basic では Nothing)。

このアプリケーション ドメインには、 WorkflowRuntime が既に存在します。

注釈

このコンストラクターは、アプリケーション構成ファイルを使用しないホストに対して、1 つのメソッド呼び出しを使用してワークフロー ランタイム エンジンを構成するメカニズムを提供します。 アプリケーション構成ファイルを使用しない理由は多数あります。 ホストは、構成ファイルの使用を許可しない環境で実行できます。たとえば、セキュリティ上の理由からアプリケーション構成ファイルからの読み取りを許可しない信頼できる環境の場合などです。 また、ホストは独自の構成メカニズムを使用できます。たとえば、ホストはワークフロー ランタイム エンジンの構成設定を SQL データベースに格納できます。

ワークフロー ランタイム エンジンは、 WorkflowRuntimeSection.Servicesに含まれる型のクラスを読み込んでインスタンス化します。 ワークフロー ランタイム エンジンがこれらのクラスを構築すると、次のシグネチャを持つクラス コンストラクターが次の順序で検索されます。

  1. Service(WorkflowRuntime ランタイム、NameValueCollection パラメーター)

  2. Service(WorkflowRuntime ランタイム)

  3. Service(NameValueCollection パラメーター)

  4. Service()

settingsで指定されているすべてのサービス クラスは、これらのコンストラクターシグネチャの少なくとも 1 つを実装する必要があります。

適用対象