public IDisposable Subscribe(string topicUri, IObserver <object> observer) { lock (mLock) { IWampTopic topic = GetOrCreateTopicByUri(topicUri, false); return(topic.Subscribe(observer)); } }
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); } }
public WampRetainingTopic(IWampTopic topic) { mTopic = topic; mDisposable = mTopic.Subscribe(new RetentionSubscriber(mTopic)); }
public IDisposable Subscribe(IWampRawTopicRouterSubscriber subscriber) { return(mTopic.Subscribe(subscriber)); }