CompensatorOptions Enumeration

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

Member nameDescription
AbortPhase

Represents the abort phase.

AllPhases

Represents all phases.

CommitPhase

Represents the commit phase.

FailIfInDoubtsRemain

Fails if in-doubt transactions remain after recovery has been attempted.

PreparePhase

Represents 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);

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft