My Question may sound very stupid (eventually it is^^) but I try to get an Lightstreamer stream in an Win Form Project. Client, Listener etc is succesfully build. ´´´
IgStreamingApiClient R2D2 = new IgStreamingApiClient(_authenticationResponse);
CustomClientListener Dax = new CustomClientListener();
MarketListener DaxMarkt = new MarketListener();
´´´
Now, the Question is, in which Part of the Code do I run the stream, 'cause I can´t fetch any Data?
List<string> Markets = new List<string>();
Markets.Add("IX.D.DAX.IFMM.IP");
R2D2.Connect(Dax);
R2D2.SubscribeToMarketUpdates(DaxMarkt,Markets);
Should I do an While(sendData=true)?Is there any magical Databinding? I've no clue where I get the item updates, maybe some of you could give me a hint.
You should leverage the proper callback of the listener you used to subscribe (DaxMarkt). Indeed, I expect that the MarketListener is a custom implementation of the SubscriptionListener interface; with the method onItemUpdate (or something similar) set up to receive updates in real time from the market.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.