通过


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。

实现此接口的资源管理器通过类上Transaction的方法将它内部非分布式事务EnlistPromotableSinglePhase的提交委托给事务的System.Transactions登记。

如果调用该方法 ITransactionPromoter.Promote ,则此接口的实现必须以传播令牌的形式生成分布式事务,并将其返回到 System.Transactions

使用该方法将此接口实现此接口的对象登记为事务EnlistPromotableSinglePhase的参与者后,事务管理器在调用方法、SinglePhaseCommit方法或PromoteRollback对象方法时通知参与者。

方法

名称 说明
Initialize()

通知事务参与者登记已成功完成。

Promote()

通知登记的对象已请求委托事务的升级。

(继承自 ITransactionPromoter)
Rollback(SinglePhaseEnlistment)

通知登记的对象正在回滚事务。

SinglePhaseCommit(SinglePhaseEnlistment)

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

适用于

另请参阅