Example #1
0
 public MessageConsumer(Session session, int consumerId, Destination dest, AcknowledgementMode acknowledgementMode)
 {
     this.session = session;
     this.id = consumerId;
     this.destination = dest;
     this.acknowledgementMode = acknowledgementMode;
 }
Example #2
0
 internal void AddSession(Session session)
 {
     if (!this.closing.Value)
     {
         sessions.Add(session);
     }
 }
Example #3
0
 internal void RemoveSession(Session session)
 {
     if (!this.closing.Value)
     {
         sessions.Remove(session);
     }
 }
Example #4
0
 public MessageProducer(Session session, int producerId, Destination destination)
 {
     this.session = session;
     this.id = producerId;
     this.destination = destination;
 }