public void RemoveRTData(RTDataRec RecIn) { RTDataRec Rec = GetRTDataRec(RecIn.Symbol, RecIn.ClusterName, false); if (Rec != null) { OnUnSubscribedSymbolEvent?.Invoke(Rec); RTDataDict.Remove(Rec.Symbol); } }
internal void OnUnSubscribe(string ClusterName, Dictionary <string, SubscribeSymbolRec> SubscribedSymbols) { var SubscribedSymbolsCopy = new Dictionary <string, SubscribeSymbolRec>(SubscribedSymbols); foreach (var kvPair in SubscribedSymbolsCopy) { string Symbol = kvPair.Key; SubscribeSymbolRec SubscribeRec = kvPair.Value; if (SubscribeRec.ChannelsWereRemoved) { RTDataRec Rec = GetRTDataRec(Symbol, ClusterName); OnUnSubscribedSymbolEvent?.Invoke(Rec); RTDataDict.Remove(Symbol); } } }