Export (0) Print
Expand All

Transaction.EnlistDurable Method (Guid, ISinglePhaseNotification, EnlistmentOptions)

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

Enlists a durable resource manager that supports single phase commit optimization to participate in a transaction.

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

public Enlistment EnlistDurable (
	Guid resourceManagerIdentifier,
	ISinglePhaseNotification singlePhaseNotification,
	EnlistmentOptions enlistmentOptions
)
public Enlistment EnlistDurable (
	Guid resourceManagerIdentifier, 
	ISinglePhaseNotification singlePhaseNotification, 
	EnlistmentOptions enlistmentOptions
)
public function EnlistDurable (
	resourceManagerIdentifier : Guid, 
	singlePhaseNotification : ISinglePhaseNotification, 
	enlistmentOptions : EnlistmentOptions
) : Enlistment

Parameters

resourceManagerIdentifier

A unique identifier for a resource manager, which should persist across resource manager failure or reboot.

singlePhaseNotification

An object that implements the ISinglePhaseNotification interface that must be able to receive single phase commit and two phase commit notifications.

enlistmentOptions

EnlistDuringPrepareRequired if the resource manager wants to perform additional work during the prepare phase.

Return Value

An Enlistment object that describes the enlistment.

Resource managers with a durable enlistment must be able to perform recovery if they experience a failure. For more information on recovery, see Performing Recovery. For more information on volatile and durable resources, as well as how to enlist a resource, see Implementing a Resource Manager.

You should note that even when your resource manager implementation enlists with this method, it is not guaranteed that it receives a single phase commit. The transaction manager can still send two phase commit notifications instead. For more information on the single phase commit optimization, 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