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