DataSource.NET  7.1.29.112283-2b6ad187
Caplin.DataSource.Subscription.ISubjectConsumer< T > Interface Template Reference

Public Member Functions

void onError (SubjectError subjectError)
 
void onNext (T message)
 
void onStatus (SubjectStatus subjectStatus)
 

Detailed Description

The SubjectConsumer interface allows applications to receive json events raised for a subscription.

Note:: the SubjectConsumer 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

Called if there is a subscription error

Parameters
subjectErrorthe subject error
void Caplin.DataSource.Subscription.ISubjectConsumer< T >.onNext ( message)

Called when an update is received

Parameters
messagethe message updated
void Caplin.DataSource.Subscription.ISubjectConsumer< T >.onStatus ( SubjectStatus  subjectStatus)

Called when the object status changes

Parameters
subjectStatusthe object status

Generated on Wed Mar 8 2023 19:11:38 for DataSource.NET