SinglePhaseEnlistment Class

Definition

Provides a set of callbacks that facilitate communication between a participant enlisted for Single Phase Commit and the transaction manager when the SinglePhaseCommit(SinglePhaseEnlistment) notification is received.

public class SinglePhaseEnlistment : System.Transactions.Enlistment
Inheritance
SinglePhaseEnlistment

Remarks

When a resource manager's implementation of SinglePhaseCommit is called, and an instance of this type is passed in, the participant then notifies the transaction manager via the Committed method or the Aborted method to indicate whether the transaction should be committed or rolled back.

Methods

Aborted()

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back.

Aborted(Exception)

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back, and provides an explanation.

Committed()

Represents a callback that is used to indicate to the transaction manager that the SinglePhaseCommit was successful.

Done()

Indicates that the transaction participant has completed its work.

(Inherited from Enlistment)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InDoubt()

Represents a callback that is used to indicate to the transaction manager that the status of the transaction is in doubt.

InDoubt(Exception)

Represents a callback that is used to indicate to the transaction manager that the status of the transaction is in doubt, and provides an explanation.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Thread Safety

This type is thread safe.

See also