protected override void DisconnectData(Topic topic) { // Retrieve the GUID from the topic's first info string - used to hook up to the Async state Guid id = _topicGuids[topic]; // ... and unsubscribe it AsyncObservableImpl.DisconnectObserver(id); _topicGuids.Remove(topic); }
protected override void DisconnectData(Topic topic) { Debug.Print("ExcelObserverRtdServer.DisconnectData: ProgId: {0}, TopicId: {1}", RegisteredProgId, topic.TopicId); // Retrieve the GUID from the topic's first info string - used to hook up to the Async state Guid id = ((ObserverRtdTopic)topic).Id; // ... and unsubscribe it AsyncObservableImpl.DisconnectObserver(id); }