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

CompensatorOptions Enumeration

Specifies flags that control which phases of transaction completion should be received by the Compensating Resource Manager (CRM) Compensator, and whether recovery should fail if questionable transactions remain after recovery has been attempted.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.EnterpriseServices.CompensatingResourceManager
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

[SerializableAttribute] 
[FlagsAttribute] 
public enum CompensatorOptions
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
public enum CompensatorOptions
SerializableAttribute 
FlagsAttribute 
public enum CompensatorOptions
 Member nameDescription
AbortPhaseRepresents the abort phase. 
AllPhasesRepresents all phases. 
CommitPhaseRepresents the commit phase. 
FailIfInDoubtsRemainFails if in-doubt transactions remain after recovery has been attempted. 
PreparePhaseRepresents the prepare phase. 

The following code example demonstrates the use of this enumeration.

// Create a new clerk using the AccountCompensator class.
Clerk clerk = new Clerk(typeof(AccountCompensator),
  "An account transaction compensator", CompensatorOptions.AllPhases);

// Create a new clerk using the AccountCompensator class.
Clerk clerk = new Clerk(AccountCompensator.class.ToType(),
    "An account transaction compensator",
    CompensatorOptions.AllPhases);

Windows 98, Windows 2000 SP4, 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, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.