public RhinoTransactionResourceAdapter(TransactionMode transactionMode) { this.transactionMode = transactionMode; }
private void OnNewTransaction(ITransaction transaction, TransactionMode transactionMode, IsolationMode isolationMode) { transaction.Enlist(new TransactionScopeResourceAdapter(transactionMode)); }
private void OnNewTransaction(ITransaction transaction, TransactionMode transactionMode, IsolationMode isolationMode, bool distributedTransaction) { if (!transaction.DistributedTransaction) { transaction.Enlist(new TransactionScopeResourceAdapter(transactionMode)); } }
public TransactionScopeResourceAdapter(TransactionMode transactionMode) { this.transactionMode = transactionMode; }
/// <summary> /// Initializes a new instance of the <see cref="TransactionScopeResourceAdapter"/> class. /// </summary> /// <param name="transactionMode">The transaction mode.</param> public TransactionScopeResourceAdapter(TransactionMode transactionMode) { this.transactionMode = transactionMode; }