public TransactionPacketStorage(SerialPoster poster, DependentTransactionRepository dependentTransactionRepository) { Contract.Requires(poster != null); _holdingTransaction = Transaction.Current; _notOnlyLocalEffects = _holdingTransaction.TransactionInformation.DistributedIdentifier != default(Guid) || _holdingTransaction.IsolationLevel == IsolationLevel.ReadUncommitted || _holdingTransaction.IsolationLevel == IsolationLevel.Chaos; _poster = poster; _dependentTransactionRepository = dependentTransactionRepository; _holdingTransaction.TransactionCompleted += HoldingTransactionTransactionCompleted; }
public TransactionPacketStorage(SerialPoster poster,DependentTransactionRepository dependentTransactionRepository) { Contract.Requires(poster != null); _holdingTransaction = Transaction.Current; _notOnlyLocalEffects = _holdingTransaction.TransactionInformation.DistributedIdentifier != default(Guid) || _holdingTransaction.IsolationLevel==IsolationLevel.ReadUncommitted || _holdingTransaction.IsolationLevel == IsolationLevel.Chaos; _poster = poster; _dependentTransactionRepository = dependentTransactionRepository; _holdingTransaction.TransactionCompleted += HoldingTransactionTransactionCompleted; }