public NetTxSession(Connection connection, SessionId id) : base(connection, id, AcknowledgementMode.AutoAcknowledge) { this.transactionContext = TransactionContext as NetTxTransactionContext; this.transactionContext.InitializeDtcTxContext(); this.enlistMsDtcNativeResources = false; }
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; }
public NetTxSession(Connection connection, SessionId id) : base(connection, id, AcknowledgementMode.AutoAcknowledge) { this.transactionContext = TransactionContext as NetTxTransactionContext; this.transactionContext.InitializeDtcTxContext(); }