An implementation of ISubscriptionListener containing
empty callback methods. you can derivce your implementation of ISubscriptionListener
from this class, and override selected callback methods with full implementations as required.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class BaseSubscriptionListener : ISubscriptionListener
Public Class BaseSubscriptionListener _ Implements ISubscriptionListener
public ref class BaseSubscriptionListener : ISubscriptionListener
Members
All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
BaseSubscriptionListener()()() | ||
ContainerUpdated(ISubscription, IPeer, IContainerMessage) |
Called when a container update is received.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.
| |
ToString()()() | (Inherited from Object.) |
Remarks
Examples
The following example provides an example of overriding the RecordUpdated member and providing a custom implementation.
CopyC#
using System; using System.Collections.Generic; using System.Text; using Caplin.DataSource; using Caplin.DataSource.Subscription; using Caplin.DataSource.Messaging.Record; namespace DataSourceExamples.Subscriber { class ExampleSubscriptionListenerFromBase : BaseSubscriptionListener { public override void RecordUpdated(ISubscription sub, IPeer peer, IRecordType1Message msg) { Console.WriteLine("Received: " + msg.ToString()); } } }
Inheritance Hierarchy
Object | |
BaseSubscriptionListener |