Represents a subscription to a subject on the Liberator.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public interface ISubscription
Public Interface ISubscription
public interface class ISubscription
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
DataStatus |
Identifies if the data for the subscription truly represents the live data for the subject.
| |
Parameters |
Gets the parameters used when subscribing to the subject on the Liberator.
| |
Status |
Gets the status of this subscription.
| |
Subject |
The subject name to which the subscription relates (for example, "FX/EURUSD").
| |
Subscribe()()() |
Subscribes to the Subject on the Liberator.
| |
SubscriptionListener |
Gets the ISubscriptionListener that is informed of
all subscription events relating to this subscription.
| |
Type |
Identifies the type of subject the subscription is for.
| |
Unsubscribe()()() |
Unsubscribes to the Subject on the Liberator.
|
Remarks
Provides information and functionality that is common to all subscription types.
There is a derived class for each specific type of data that you can subscribe to; for example a record subscription is represented by IRecordSubscription.
Use the Create<SubjectType>Subscription() method of IStreamLinkProvider to obtain subscriptions of the appropriate type. For example, IStreamLinkProvider’s CreateRecordSubscription(IRecordSubscriptionListener, String, IRecordSubscriptionParameters) method will return a record subscription (IRecordSubscription).