Exemplo n.º 1
0
 public void Subscribe(XSubscriber subscriber)
 {
     lock (lockobject)
     {
         mSubscribe(subscriber);
     }
 }
Exemplo n.º 2
0
 private void mSubscribe(XSubscriber subscriber)
 {
     try
     {
         if (subscriber == null)
         {
             return;
         }
         var key = $"[{subscriber.Topic}][{subscriber.Method}]".ToLower();
         if (!this.topiccallbacks.ContainsKey(key))
         {
             this.topiccallbacks.TryAdd(subscriber.XGuid, subscriber);
         }
     }
     catch { }
 }
Exemplo n.º 3
0
 public void Subscribe(XSubscriber subscriber)
 {
     XMQSession.Current.Subscribe(subscriber);
 }