Share via


TransactionManager Class

Definition

The TransactionManager class is responsible for creating Transaction objects and keeping track of the current active transaction.

public ref class TransactionManager
public class TransactionManager
type TransactionManager = class
Public Class TransactionManager
Inheritance
TransactionManager

Constructors

Name Description
TransactionManager(Store)

constructor.

Properties

Name Description
CurrentTransaction

Return the current active transaction.

InTransaction

Return whether are not the Store is in the middle of a transaction or not.

Store

Return the Store that this TransactionManager is part of.

TransactionDepth

Return the depth of the nested transactions.

Methods

Name Description
AddCanCommitCallback(CanCommitCallback)

Add CanCommit voter.

BeginTransaction()

Creates a new transaction object and returns a reference to it.

BeginTransaction(String, Boolean, TransactionContext)

Creates a new transaction object and returns a reference to it.

BeginTransaction(String, Boolean)

Creates a new transaction object and returns a reference to it.

BeginTransaction(String)

Creates a new transaction object and returns a reference to it.

RemoveCanCommitCallback(CanCommitCallback)

Remove CanCommit voter.

Applies to