public void TerminateLightstreamer() { if (lsClient != null) { lsClient.Stop(); } lsClient = null; }
public StocklistConnectionListener(IRtdLightstreamerListener listener, LightstreamerClient ls, String url) { if (listener == null) { throw new ArgumentNullException("listener"); } this.listener = listener; this.lsClient = ls; this.pushServerUrl = url; }
public RtdServer() { flowForm = new FlowForm(this); flowForm.Activate(); // setup Lightstreamer Client instance lsClient = new LightstreamerClient(this, null, null, this.flowForm); flowForm.Show(); flowForm.BringToFront(); pushServerUrl = "http://localhost:80"; }
public void ServerTerminate() { flowForm.AppendExcelLog("RtdServer terminated"); rtdUpdateEvent = null; if (lsClient != null) { lsClient.Stop(); } lsClient = null; if (rtdUpdateEvent != null) { rtdUpdateEvent.Disconnect(); } updateQueue.Clear(); topicIdMap.Clear(); reverseTopicIdMap.Clear(); }