DataSource.NET
BaseSubscriptionListener Class
NamespacesCaplin.DataSource.SubscriptionBaseSubscriptionListener
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 BasicVisual C++
public class BaseSubscriptionListener : ISubscriptionListener
Public Class BaseSubscriptionListener _
	Implements ISubscriptionListener
public ref class BaseSubscriptionListener : ISubscriptionListener
Members
All MembersConstructorsMethods



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

Equals(Object)
Determines whether the specified Object is equal to the current 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.)
GenericMessageUpdated(ISubscription, IPeer, IGenericMessage)
Called when an update to generic data in a message is received.

GetHashCode()()()
Serves as a hash function for a particular type.
(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()()()
Returns a String that represents the current Object.
(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

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.2.6.2123 (6.2.6.2123)