Lightstreamer .Net Adapter 1.10.0
IMetadataProvider.GetDistinctSnapshotLength Method

Called by Lightstreamer Kernel through the Remote Server to ask for the maximum allowed length for a Snapshot of an Item that has been requested with publishing Mode DISTINCT. In fact, in DISTINCT publishing Mode, the Snapshot for an Item is made by the last events received for the Item and the Client can specify how many events it would like to receive. Thus, Lightstreamer Kernel must always keep a buffer with some of the last events received for the Item and the length of the buffer is limited by the value returned by this method. The maximum Snapshot size cannot be unlimited. 

This method runs in the Server thread pool specific for the Data Adapter that supplies the involved items, if defined. 


int GetDistinctSnapshotLength(string item);
int GetDistinctSnapshotLength(string item);
Visual Basic
Function GetDistinctSnapshotLength(item As string) As Integer
string item 
An Item Name. 

The maximum allowed length for the Snapshot; a zero return value means that no Snapshot information should be kept.