-
February 5th, 2016, 09:19 AM
#2
Hi Hassan,
From the client point of view the snapshot in case of COMMAND mode consists exclusively of ADD events.
Thus when a .NET client reconnects (after a disconnection) it should worry about to recover the consistency of the data displayed upon the new snapshot received.
The easiest way to do this is:
- clean all the old data in the view. The moment most suitable to do this depends according to the needs of your application; in fact you can do it right away detected the disconnection or let the user see the old data until the new subscription succeded.
- add from scratch the keys included in the new snapshot.
Furthermore, consider that the key field for an Item is unique and therefore you can protect your data view by adding a check for this.
From the Lightstreamer server point of view, if it receives a DELETE events even with snapshot flag to true, this delete actually the key from the Item if any. The next UPDATE event for that key will be converted automatically in a ADD event. But maybe I did not understand what you mean.
Regards,
Giuseppe
Similar Threads
-
By engcoder in forum Client SDKs
Replies: 7
Last Post: January 27th, 2016, 05:27 PM
-
By antiGuru in forum Adapter SDKs
Replies: 1
Last Post: February 5th, 2010, 09:55 AM
-
By rd2008 in forum General
Replies: 9
Last Post: October 10th, 2008, 10:38 AM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 02:11 PM
-
By CitiMan in forum Adapter SDKs
Replies: 8
Last Post: November 30th, 2006, 04:26 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:26 PM.
Bookmarks