internal Transaction(System.Transactions.IsolationLevel isoLevel, ISimpleTransactionSuperior superior) { TransactionManager.ValidateIsolationLevel(isoLevel); if (superior == null) { throw new ArgumentNullException("superior"); } this.isoLevel = isoLevel; if (System.Transactions.IsolationLevel.Unspecified == this.isoLevel) { this.isoLevel = TransactionManager.DefaultIsolationLevel; } this.internalTransaction = new InternalTransaction(this, superior); this.cloneId = 1; }
internal Transaction(IsolationLevel isoLevel, ISimpleTransactionSuperior superior) { TransactionManager.ValidateIsolationLevel(isoLevel); ArgumentNullException.ThrowIfNull(superior); _isoLevel = isoLevel; // Never create a transaction with an IsolationLevel of Unspecified. if (IsolationLevel.Unspecified == _isoLevel) { _isoLevel = TransactionManager.DefaultIsolationLevel; } _internalTransaction = new InternalTransaction(this, superior); // ISimpleTransactionSuperior is defined to also promote to MSDTC. _internalTransaction.SetPromoterTypeToMSDTC(); _cloneId = 1; }
public SubordinateTransaction (IsolationLevel level, ISimpleTransactionSuperior superior) { throw new NotImplementedException (); }
// Constructors public SubordinateTransaction(IsolationLevel isoLevel, ISimpleTransactionSuperior superior) { }
// Create a transaction with the given settings // public SubordinateTransaction( IsolationLevel isoLevel, ISimpleTransactionSuperior superior ) : base(isoLevel, superior) { }
public SubordinateTransaction(IsolationLevel level, ISimpleTransactionSuperior superior) { throw new NotImplementedException(); }
internal Transaction(IsolationLevel isoLevel, ISimpleTransactionSuperior superior) { TransactionManager.ValidateIsolationLevel(isoLevel); if (superior == null) { throw new ArgumentNullException(nameof(superior)); } _isoLevel = isoLevel; // Never create a transaction with an IsolationLevel of Unspecified. if (IsolationLevel.Unspecified == _isoLevel) { _isoLevel = TransactionManager.DefaultIsolationLevel; } _internalTransaction = new InternalTransaction(this, superior); // ISimpleTransactionSuperior is defined to also promote to MSDTC. _internalTransaction.SetPromoterTypeToMSDTC(); _cloneId = 1; }