Наследование: Session, INetTxSession
Пример #1
0
        public INetTxSession CreateNetTxSession(Transaction tx, bool enlistNativeMsDtcResource)
        {
            NetTxSession session = (NetTxSession)CreateSession(AcknowledgementMode.Transactional);

            session.Enlist(tx);
            session.EnlistsMsDtcNativeResource = enlistNativeMsDtcResource;
            return(session);
        }
Пример #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;
 }