예제 #1
0
 private void OnConnectionClosed(object sender, EventArgs e)
 {
     // TODO: Spaghetti code - We call this in order to remove
     // the subscription from the dictionary, and it calls
     // Dispose...
     mTopic.Unsubscribe(Observer.SessionId);
 }
예제 #2
0
        public void Unsubscribe(string topicUri, string sessionId)
        {
            lock (mLock)
            {
                IWampTopic topic = GetTopicByUri(topicUri);

                if (topic != null)
                {
                    topic.Unsubscribe(sessionId);
                }
            }
        }