Esempio n. 1
0
File: Node.cs Progetto: pjanec/DID
        void OnTopicRemoved(ITopic t)
        {
            TopicRemoved?.Invoke(t);
            var tr = topicRecs.FirstOrDefault(x => x.topic == t);

            topicRecs.Remove(tr);
        }
Esempio n. 2
0
File: Node.cs Progetto: pjanec/DID
        void Disconnect()
        {
            // wait for potential connect to finish
            if (_connectTask != null)
            {
                _connectTask.Wait();
            }

            // disconnect
            rdClient.Disconnect();

            // clear topics
            foreach (var tr in topicRecs)
            {
                TopicRemoved?.Invoke(tr.topic);
            }

            topicRecs.Clear();

            TopicAdded   = null;
            TopicRemoved = null;
        }
Esempio n. 3
0
 private void RaiseTopicRemoved(IWampTopic topic)
 {
     TopicRemoved?.Invoke(this, new WampTopicRemovedEventArgs(topic));
 }
Esempio n. 4
0
 private void RaiseTopicRemoved(WampTopicRemovedEventArgs e)
 {
     TopicRemoved?.Invoke(this, e);
 }