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); }
public void Unsubscribe(string topicUri, string sessionId) { lock (mLock) { IWampTopic topic = GetTopicByUri(topicUri); if (topic != null) { topic.Unsubscribe(sessionId); } } }