示例#1
0
            public IEnumerable <string> Register(ITopicSubscriptionListener listener)
            {
                TopicSubscribed   += listener.TopicSubscribed;
                TopicUnsubscribed += listener.TopicUnsubscribed;

                return(InitialTopics);
            }
 public void Unregister(ITopicSubscriptionListener listener)
 {
     lock (subscriptions)
     {
         TopicSubscribed -= listener.TopicSubscribed;
         TopicUnsubscribed -= listener.TopicUnsubscribed;
     }
 }
 public void Unregister(ITopicSubscriptionListener listener)
 {
     lock (subscriptions)
     {
         this.TopicSubscribed   -= listener.TopicSubscribed;
         this.TopicUnsubscribed -= listener.TopicUnsubscribed;
     }
 }
 public IEnumerable<string> Register(ITopicSubscriptionListener listener)
 {
     lock (subscriptions)
     {
         TopicSubscribed += listener.TopicSubscribed;
         TopicUnsubscribed += listener.TopicUnsubscribed;
         return new HashSet<string>(subscriptions);
     }
 }
 public IEnumerable <string> Register(ITopicSubscriptionListener listener)
 {
     lock (subscriptions)
     {
         this.TopicSubscribed   += listener.TopicSubscribed;
         this.TopicUnsubscribed += listener.TopicUnsubscribed;
         return(new HashSet <string>(this.subscriptions));
     }
 }
示例#6
0
 public void Unregister(ITopicSubscriptionListener listener)
 {
     TopicSubscribed   -= listener.TopicSubscribed;
     TopicUnsubscribed -= listener.TopicUnsubscribed;
 }
            public IEnumerable<string> Register(ITopicSubscriptionListener listener)
            {
                TopicSubscribed += listener.TopicSubscribed;
                TopicUnsubscribed += listener.TopicUnsubscribed;

                return InitialTopics;
            }
示例#8
0
 public void Unregister(ITopicSubscriptionListener listener)
 {
     this.TopicSubscribed -= listener.TopicSubscribed;
     this.TopicUnsubscribed -= listener.TopicUnsubscribed;
 }