Exemple #1
0
 public static void RemovePendingAcknowledgement(this ClientSession session, PendingAcknowledgement pending)
 {
     lock (pendingAcksLock) {
         session.PendingAcknowledgements.Remove(pending);
     }
 }
Exemple #2
0
 public static void RemovePendingMessage(this ClientSession session, PendingMessage pending)
 {
     lock (pendingMessagesLock) {
         session.PendingMessages.Remove(pending);
     }
 }
Exemple #3
0
 public static IEnumerable <PendingAcknowledgement> GetPendingAcknowledgements(this ClientSession session)
 {
     lock (pendingAcksLock) {
         return(session.PendingAcknowledgements.ToList());
     }
 }
Exemple #4
0
 public static void AddPendingMessage(this ClientSession session, PendingMessage pending)
 {
     lock (pendingMessagesLock) {
         session.PendingMessages.Add(pending);
     }
 }
Exemple #5
0
 public static IEnumerable <PendingMessage> GetPendingMessages(this ClientSession session)
 {
     lock (pendingMessagesLock) {
         return(session.PendingMessages.ToList());
     }
 }
Exemple #6
0
 public static void RemoveSubscription(this ClientSession session, ClientSubscription subscription)
 {
     lock (subscriptionsLock) {
         session.Subscriptions.Remove(subscription);
     }
 }
Exemple #7
0
 public static void AddSubscription(this ClientSession session, ClientSubscription subscription)
 {
     lock (subscriptionsLock) {
         session.Subscriptions.Add(subscription);
     }
 }
Exemple #8
0
 public static IEnumerable <ClientSubscription> GetSubscriptions(this ClientSession session)
 {
     lock (subscriptionsLock) {
         return(session.Subscriptions.ToList());
     }
 }