DataSource.NET  7.1.31.142147-b54558a5
Caplin.DataSource.Publisher.ICachingDataProvider Interface Reference

Interface that must be implemented in order to provide data updates to DataSource peers for cached objects. It contains callbacks that handle subscription and discard requests. More...

Inherited by Caplin.DataSource.Channel.JsonChannelProvider.

Public Member Functions

void ReceiveDiscard (string subject)
 Callback that informs the CachingDataProvider that an earlier requested subject has now been discarded and it should stop sending data. More...
 
void ReceiveRequest (string subject)
 Callback that informs the CachingDataProvider that a new request has been received and it should start sending data. More...
 

Detailed Description

Interface that must be implemented in order to provide data updates to DataSource peers for cached objects. It contains callbacks that handle subscription and discard requests.

Note: the CachingDataProvider methods are not called on a dedicated worker thread. Therefore, if any of these methods are likely take a relatively long time to execute, they should be coded to run in a separate thread.

Member Function Documentation

void Caplin.DataSource.Publisher.ICachingDataProvider.ReceiveDiscard ( string  subject)

Callback that informs the CachingDataProvider that an earlier requested subject has now been discarded and it should stop sending data.

Parameters
subjectThe discarded subject.
void Caplin.DataSource.Publisher.ICachingDataProvider.ReceiveRequest ( string  subject)

Callback that informs the CachingDataProvider that a new request has been received and it should start sending data.

Parameters
subjectThe requested subject.

Generated on Fri Jul 7 2023 17:09:44 for DataSource.NET