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; }
/// <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; }