IPendingWork インターフェイス

定義

注意事項

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

作業バッチに参加するメソッドを提供します。

public interface class IPendingWork
public interface IPendingWork
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IPendingWork
type IPendingWork = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IPendingWork = interface
Public Interface IPendingWork
派生
属性

注釈

Note

この資料では、古い型と名前空間について説明します。 詳細については、「Windows Workflow Foundation 4.5 のDeprecated 型」を参照してください。

IPendingWork インターフェイスは、ワークフロー ランタイム エンジンのバッチ処理メカニズムに参加するサービス用に提供されます。 バッチ処理メカニズムは、永続ストアを使用するサービスに特に役立ちます。 多くの場合、サービスによって使用される永続ストアとワークフロー ランタイム エンジンの内部状態の間で一貫性を維持することが重要です。

WorkflowCommitWorkBatchServiceによって提供されるワークフロー トランザクション バッチ処理にサービスを参加させる場合は、IPendingWork インターフェイスによって定義されたメソッドを実装する必要があります。 ワークフロー ランタイム エンジンは、サービスで Commit メソッドを呼び出してバッチをコミットします。

SqlWorkflowPersistenceService クラスは IPendingWork インターフェイスを実装しています。

メソッド

名前 説明
Commit(Transaction, ICollection)
古い.

指定した Transaction オブジェクトを使用して、作業項目の一覧をコミットします。

Complete(Boolean, ICollection)
古い.

トランザクションが完了したときに呼び出されます。

MustCommit(ICollection)
古い.

作業バッチ内の項目が、すぐにコミットする必要があるかどうかをアサートできるようにします。

適用対象