void tl_newRegisterSymbols(string client, string symbols) { debug("got symbol request: " + client + " for: " + symbols); Basket mb = tl.AllClientBasket; try { socketQuoteServer.WLSTRemoveWatchListonL1(); } catch (Exception ex) { debug("DAS exception on removing watch list for symbols: " + symbols + " err: " + ex.Message + ex.StackTrace); } //Close_Connections(false); foreach (Security s in mb) { try { socketQuoteServer.WLSTAddWatch(s.Symbol); socketQuoteServer.WLSTAddWatch(s.Symbol, 2); v(s.Symbol + " watching l1, l2 data."); } catch (Exception ex) { debug("DAS exception on registering symbols: " + s.Symbol + " err: " + ex.Message + ex.StackTrace); } } }
void tl_newRegisterSymbols(string client, string symbols) { debug("got symbol request: " + client + " for: " + symbols); Basket mb = tl.AllClientBasket; socketQuoteServer.WLSTRemoveWatchListonL1(); foreach (Security s in mb) { socketQuoteServer.WLSTAddWatch(s.Symbol); } }