private void QueuedSubscribe(QueuedSymbolRec QueuedSymbol) { if (PGStatus.IsReconnect || PGStatus.IsAuthFailed) { return; } if (QueuedSymbol.IsSubscribe) { SubscribeSymbol(QueuedSymbol.Params, QueuedSymbol.Channels, QueuedSymbol.CreateRec); } else { UnSubscribeSymbol(QueuedSymbol.Params, QueuedSymbol.Channels); } }
public void QueueSubscribeData(string Symbol, string Params, List <string> Channels = null, bool IsSubscribe = true, bool CreateRec = false) { lock ( SymbolsQueue ) { var QueuedSymbol = new QueuedSymbolRec() { Symbol = Symbol, Params = Params, Channels = Channels, CreateRec = CreateRec, IsSubscribe = true, IsQueued = true }; SymbolsQueue.Add(QueuedSymbol); FireOnTextInfoEvent($"{Symbol} was queued for subscribe on socket connected"); OnSymbolQueuedEvent?.Invoke(QueuedSymbol); } }