DataSource.NET  8.0.1.207118-0de6d82f
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 Fri Feb 23 2024 15:25:36 for DataSource.NET