예제 #1
0
 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;
 }
예제 #2
0
 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;
 }