DataSource.NET  8.0.3.290770-7760911e
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...
 
void SetPublisher (ICachingPublisher publisher)
 Sets a publisher for the ICachingDataProvider to use when publishing 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.
void Caplin.DataSource.Publisher.ICachingDataProvider.SetPublisher ( ICachingPublisher  publisher)

Sets a publisher for the ICachingDataProvider to use when publishing data.

Parameters
publisherThe Caplin.DataSource.Publisher.ICachingPublisher publisher for this ICachingDataProvider to use when publishing data.

Generated on Wed Jul 31 2024 17:13:02 for DataSource.NET