explain about classes :Burst.cs,ExternalFeed.cs,StockList.cs
hi all
i have developed data adapters for .Net and SQL server, but i I'm having diffuculties understanding about classes :Burst.cs, ExternalFeed.cs, StockList.cs of the demo example DotNetStockListDemo, can anyone help me to explain about them.Thanks
ExternalFeed.cs is a simulator. It generates stock updates and passes them to a class implementing IExternalFeedListener.
StockList.cs implements IExternalFeedListener to listen generated events from the ExternalFeed instance and implements IDataProvider to be used as a DataAdapter and so to pass data to Lightstreamer.
Burst.cs implements IDataProvider so that it can be used as a different DataAdapter. It generates data on its own but with a heavier load on the machine.
Those are just example that generates their data. In real cases you will probably get the data from an external feed (in your case the SQL server).
thanks for the info, now i can get data from Sqlserver.
but i have still one problem : in the example demo stocklistdemo for data adapter .Net,(for data adapter .java is good) i click stock name(for example :CVS Asia) to shown popup in form index.html , it has 3 errors :
1> SLDpopup7 1 :10:53:23,760 ER positionXAxis this is a not valid value for positionXaxis:"NaN", please use a number.
2> SLDpopup7 2 :10:53:23,760 ER positionXAxis this is a not valid value for positionXaxis:"NaN", please use a number.
3>SLpopup7 3 : :10:53:23,760 ER callback exception Invalid argument.
thrown by your callback
function onChartUpdate(item,upOb)
{
-------
-------
}
and the graph don't appear.
I think there is a problem on date formatting.
In the java adapter the date is formatted as "HH:mm:ss" by the SimpleDateFormat class.
Please check if on your environment the dotNet adapter generates something similar or not.
You can do the check adapter side (ExternalFeed.cs)
I can't find the Burst.cs file in DotNetStockListDemo. And would you show me an example that gets UPDATED DATA from database (such as SQL) !
Thanks very much !
We recently removed burst.cs, as it was unrelated to the StockListDemo example and might be confusing. You can find it attached; however, it does not demonstrate getting data from a database.
In fact, we have no examples of this kind available.
Bookmarks