示例#1
0
 public NetTxSession(Connection connection, SessionId id)
     : base(connection, id, AcknowledgementMode.AutoAcknowledge)
 {
     this.transactionContext = TransactionContext as NetTxTransactionContext;
     this.transactionContext.InitializeDtcTxContext();
     this.enlistMsDtcNativeResources = false;
 }
示例#2
0
 internal NetTxMessageConsumer(Session session, ConsumerId id, ActiveMQDestination destination,
                               string name, string selector, int prefetch, int maxPendingMessageCount,
                               bool noLocal, bool browser, bool dispatchAsync) :
     base(session, id, destination, name, selector, prefetch,
          maxPendingMessageCount, noLocal, browser, dispatchAsync)
 {
     this.session            = session as NetTxSession;
     this.transactionContext = session.TransactionContext as NetTxTransactionContext;
 }
示例#3
0
 public NetTxSession(Connection connection, SessionId id)
     : base(connection, id, AcknowledgementMode.AutoAcknowledge)
 {
     this.transactionContext = TransactionContext as NetTxTransactionContext;
     this.transactionContext.InitializeDtcTxContext();
 }