Class TransactionContext
- Namespace
- Apache.NMS.ActiveMQ
- Assembly
- Apache.NMS.ActiveMQ.dll
public class TransactionContext
- Inheritance
-
TransactionContext
- Derived
-
- Inherited Members
-
Constructors
TransactionContext(Session)
public TransactionContext(Session session)
Parameters
session
Session
Fields
connection
protected readonly Connection connection
Field Value
- Connection
session
protected readonly Session session
Field Value
- Session
synchronizations
protected readonly ArrayList synchronizations
Field Value
- ArrayList
Properties
InLocalTransaction
public virtual bool InLocalTransaction { get; }
Property Value
- bool
InTransaction
public bool InTransaction { get; }
Property Value
- bool
TransactionId
public TransactionId TransactionId { get; protected set; }
Property Value
- TransactionId
Methods
AddSynchronization(ISynchronization)
public void AddSynchronization(ISynchronization synchronization)
Parameters
synchronization
ISynchronization
Begin()
public virtual void Begin()
Commit()
public virtual void Commit()
RemoveSynchronization(ISynchronization)
public void RemoveSynchronization(ISynchronization synchronization)
Parameters
synchronization
ISynchronization
Rollback()
public virtual void Rollback()
SignalTransactionCommitted()
protected void SignalTransactionCommitted()
SignalTransactionRolledBack()
protected void SignalTransactionRolledBack()
SignalTransactionStarted()
protected void SignalTransactionStarted()
Events
TransactionCommittedListener
public event SessionTxEventDelegate TransactionCommittedListener
Event Type
- SessionTxEventDelegate
TransactionRolledBackListener
public event SessionTxEventDelegate TransactionRolledBackListener
Event Type
- SessionTxEventDelegate
TransactionStartedListener
public event SessionTxEventDelegate TransactionStartedListener
Event Type
- SessionTxEventDelegate