示例#1
0
		internal void OnSessionException(Session sender, Exception exception)
		{
			Tracer.ErrorFormat("Session Exception: {0}", exception.ToString());
			if (ExceptionListener != null)
				ExceptionListener(exception);
		}
        public TransactionContext(Session session)
		{
            this.session = session;
        }
示例#3
0
 /// <summary>
 /// Creates a new session to work on this connection
 /// </summary>
 public ISession CreateSession(AcknowledgementMode acknowledgementMode)
 {
     SessionInfo info = CreateSessionInfo(acknowledgementMode);
     SyncRequest(info);
     Session session = new Session(this, info, acknowledgementMode);
     sessions.Add(session);
     return session;
 }
 // Constructor internal to prevent clients from creating an instance.
 internal MessageConsumer(Session session, ConsumerInfo info, AcknowledgementMode acknowledgementMode)
 {
     this.session = session;
     this.info = info;
     this.acknowledgementMode = acknowledgementMode;
 }