Export (0) Print
Expand All

IPromotableSinglePhaseNotification Interface

Note: This interface is new in the .NET Framework version 2.0.

Describes an object that acts as a commit delegate for a non-distributed transaction internal to a resource manager.

Namespace: System.Transactions
Assembly: System.Transactions (in system.transactions.dll)

public interface IPromotableSinglePhaseNotification : ITransactionPromoter
public interface IPromotableSinglePhaseNotification extends ITransactionPromoter
public interface IPromotableSinglePhaseNotification extends ITransactionPromoter

Promotable Enlistments (PSPE) allow a resource, such as a database, to take ownership of the transaction if it is the only entity participating in the transaction. Later, if needed, the System.Transactions infrastructure can still escalate the transaction to MSDTC. For more information, see Optimization using Single Phase Commit and Promotable Single Phase Notification.

A resource manager that implements this interface delegates control of the commit of it's internal non-distributed transaction to an enlistment on a System.Transactions transaction through the EnlistPromotableSinglePhase method on the Transaction class.

If the ITransactionPromoter.Promote method is called, your implementation of this interface must produce a distributed transaction in the form of a propagation token, and return it to System.Transactions.

After you enlist an object that implements this interface as a participant of a transaction using the EnlistPromotableSinglePhase method, the transaction manager then notifies the participant when the transaction is promoted, committed, or rolled back by invoking the Promote method, the SinglePhaseCommit method, or the Rollback method of the object.

For more information, see Optimization using Single Phase Commit and Promotable Single Phase Notification.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft