DataSource.NET
ISubscriptionListener Interface
NamespacesCaplin.DataSource.SubscriptionISubscriptionListener
The ISubscriptionListener interface allows applications to receive events raised for an ISubscription.
Declaration Syntax
C#Visual BasicVisual C++
public interface ISubscriptionListener
Public Interface ISubscriptionListener
public interface class ISubscriptionListener
Members
All MembersMethods



IconMemberDescription
ContainerUpdated(ISubscription, IPeer, IContainerMessage)
Called when a container update is received.

GenericMessageUpdated(ISubscription, IPeer, IGenericMessage)
Called when an update to generic data in a message is received.

NewsUpdated(ISubscription, IPeer, INewsMessage)
Called when a news headline update is received.

PageUpdated(ISubscription, IPeer, IPageMessage)
Called when a page update is received.

PermissionUpdated(ISubscription, IPeer, IPermissionMessage)
Called when when a permission update is received.

RecordType2Updated(ISubscription, IPeer, IRecordType2Message)
Called when an update to type 2 data in a record is received.

RecordType3Updated(ISubscription, IPeer, IRecordType3Message)
Called when an update to type3 data in a record is received.

RecordUpdated(ISubscription, IPeer, IRecordType1Message)
Called when an update to type 1 data in a record is received.

StoryUpdated(ISubscription, IPeer, IStoryMessage)
Called when a story update is received.

SubjectErrorReceived(ISubscription, IPeer, ISubjectErrorEvent)
Called when there is an error in a subscription.

SubjectStatusReceived(ISubscription, IPeer, ISubjectStatusEvent)
Called when there is a change in the status of a subscription.

Remarks

Implement this interface to receive subscription events. You must implement all the callback methods; there is one for each subject type (Record, Pages, News, and so on). Alternatively, you can derive your ISubscriptionListener implementation from the BaseSubscriptionListener class and then override the methods corresponding to the subject types for which you want to handle events.

Thread Safety

The ISubscriptionListener 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.

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.0.12.814 (6.0.12.0814)