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)

通知登记的对象事务正在提交。

适用于

另请参阅