StreamLink for Silverlight
ISubscriptionListener Interface
StreamLink for SilverlightCaplin.StreamLink.SubscriptionISubscriptionListener
The ISubscriptionListener interface allows applications to receive events raised for a subscription: error events (ISubscriptionErrorEvent) and status change events (ISubscriptionStatusEvent).
Declaration Syntax
C#Visual BasicVisual C++
public interface ISubscriptionListener
Public Interface ISubscriptionListener
public interface class ISubscriptionListener
Members
All MembersMethods



IconMemberDescription
SubscriptionErrorReceived(ISubscription, ISubscriptionErrorEvent)
Handles an event raised when there is an error in a subscription.

SubscriptionStatusUpdated(ISubscription, ISubscriptionStatusEvent)
Handles an event raised when there is a change in the status of a subscription.

Remarks

For each type of subscription you must define a class that implements a listener for events that can be raised on the subscription type. For example, events relating to record subscriptions (IRecordSubscription) are handled by an implementation of IRecordSubscriptionListener. The various subscription listeners all inherit from ISubscriptionListener, so they must implement the callback methods defined here.

Note: StreamLink queues events in the order they were raised and passes each event in turn to an appropriate callback method of the relevant listener. All listener callbacks execute in the same dedicated worker thread, so while a particular callback method is running no other callbacks will be invoked.

See Also

Assembly: Caplin.StreamLink.Silverlight (Module: Caplin.StreamLink.Silverlight) Version: 5.0.21.0 (5.0.21.0)