Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IPromotableSinglePhaseNotification Interface

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 class IPromotableSinglePhaseNotification : ITransactionPromoter

The IPromotableSinglePhaseNotification type exposes the following members.

  NameDescription
Public methodInitializeNotifies a transaction participant that enlistment has completed successfully.
Public methodPromoteNotifies an enlisted object that an escalation of the delegated transaction has been requested. (Inherited from ITransactionPromoter.)
Public methodRollbackNotifies an enlisted object that the transaction is being rolled back.
Public methodSinglePhaseCommitNotifies an enlisted object that the transaction is being committed.
Top

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.