示例#1
0
        public void RemoveRTData(RTDataRec RecIn)
        {
            RTDataRec Rec = GetRTDataRec(RecIn.Symbol, RecIn.ClusterName, false);

            if (Rec != null)
            {
                OnUnSubscribedSymbolEvent?.Invoke(Rec);
                RTDataDict.Remove(Rec.Symbol);
            }
        }
示例#2
0
        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);
                }
            }
        }