コード例 #1
0
        public IDisposable Subscribe(string topicUri, IObserver <object> observer)
        {
            lock (mLock)
            {
                IWampTopic topic = GetOrCreateTopicByUri(topicUri, false);

                return(topic.Subscribe(observer));
            }
        }
コード例 #2
0
        public IWampRegistrationSubscriptionToken Subscribe(IWampRawTopicRouterSubscriber subscriber, string topicUri, SubscribeOptions options)
        {
            lock (mLock)
            {
                IWampTopic topic = GetOrCreateTopicByUri(topicUri);

                IDisposable disposable = topic.Subscribe(subscriber);

                var result = new SubscriptionToken(topic.SubscriptionId, disposable);

                return(result);
            }
        }
コード例 #3
0
 public WampRetainingTopic(IWampTopic topic)
 {
     mTopic      = topic;
     mDisposable = mTopic.Subscribe(new RetentionSubscriber(mTopic));
 }
コード例 #4
0
 public IDisposable Subscribe(IWampRawTopicRouterSubscriber subscriber)
 {
     return(mTopic.Subscribe(subscriber));
 }