Ejemplo n.º 1
0
 public Session(Connection connection, SessionInfo info, AcknowledgementMode acknowledgementMode)
 {
     this.connection                      = connection;
     this.info                            = info;
     this.acknowledgementMode             = acknowledgementMode;
     this.asyncSend                       = connection.AsyncSend;
     transactionContext                   = new TransactionContext(this);
     dispatchingThread                    = new DispatchingThread(new DispatchingThread.DispatchFunction(DispatchAsyncMessages));
     dispatchingThread.ExceptionListener += new DispatchingThread.ExceptionHandler(dispatchingThread_ExceptionListener);
 }
Ejemplo n.º 2
0
                public Session(Connection connection, SessionInfo info, AcknowledgementMode acknowledgementMode)
                {
                        this.connection = connection;
                        this.info = info;
                        this.acknowledgementMode = acknowledgementMode;
						this.asyncSend = connection.AsyncSend;
                        transactionContext = new TransactionContext(this);
                        dispatchingThread = new DispatchingThread(new DispatchingThread.DispatchFunction(DispatchAsyncMessages));
                        dispatchingThread.ExceptionListener += new DispatchingThread.ExceptionHandler(dispatchingThread_ExceptionListener);
                }