IPromotableSinglePhaseNotification 介面

定義

描述物件,該物件用來當做資源管理員內部之非分散式交易的認可委派。

public interface class IPromotableSinglePhaseNotification : System::Transactions::ITransactionPromoter
public interface IPromotableSinglePhaseNotification : System.Transactions.ITransactionPromoter
type IPromotableSinglePhaseNotification = interface
    interface ITransactionPromoter
Public Interface IPromotableSinglePhaseNotification
Implements ITransactionPromoter
實作

備註

可提升登記 (PSPE) 允許資源,例如資料庫,如果它是唯一參與交易的實體,就能取得交易的擁有權。 稍後,如有需要, System.Transactions 基礎結構仍可將交易呈報至 MSDTC。 如需詳細資訊,請參閱 使用單一階段認可優化和可提升單一階段通知

實作此介面的資源管理員會透過 EnlistPromotableSinglePhase 類別上的 方法 Transaction ,將它內部非分散式交易的認可控制權委派給交易上的 System.Transactions 登記。

ITransactionPromoter.Promote如果呼叫 方法,則此介面的實作必須以傳播權杖的形式產生分散式交易,並將其傳回至 System.Transactions

當您使用 方法將這個介面實作為交易 EnlistPromotableSinglePhase 參與者的物件之後,交易管理員接著會叫 Promote 用 方法、 SinglePhaseCommit 方法或 Rollback 物件的 方法,在交易升級、認可或回復時通知參與者。

如需詳細資訊,請參閱 使用單一階段認可優化和可提升單一階段通知

方法

Initialize()

告知交易參與者已成功完成登記。

Promote()

向未登記的物件告知已經要求擴大已委派之交易的規模。

(繼承來源 ITransactionPromoter)
Rollback(SinglePhaseEnlistment)

告知登記的物件正在復原交易。

SinglePhaseCommit(SinglePhaseEnlistment)

告知登記的物件正在認可交易。

適用於

另請參閱