The ISubscriptionListener interface allows applications to receive events
raised for a subscription: error events (ISubscriptionErrorEvent)
and status change events (ISubscriptionStatusEvent).
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
([!:StreamLink.Subscription.Record.IRecordSubscription])
are handled by an implementation of
[!:StreamLink.Subscription.Record.IRecordSubscriptionListener].
The various subscription listeners all inherit from ISubscriptionListener,
so they must implement the callback methods defined here.
IRecordSubscriptionListenerIContainerSubscriptionListenerIDirectorySubscriptionListener
Declaration Syntax
C# | Visual Basic | Visual C++ |
public interface ISubscriptionListener
Public Interface ISubscriptionListener
public interface class ISubscriptionListener
Members
All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
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.
|
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.