Creates an active subscription to an individual subject.
Declaration Syntax
C# | Visual Basic | Visual C++ |
IActiveSubscription CreateActiveSubscription( string subject, ISubscriptionListener listener )
Function CreateActiveSubscription ( _ subject As String, _ listener As ISubscriptionListener _ ) As IActiveSubscription
IActiveSubscription^ CreateActiveSubscription( String^ subject, ISubscriptionListener^ listener )
Parameters
- subject (String)
- The subject to subscribe to.
- listener (ISubscriptionListener)
- A listener to receive events raised for the IBroadcastSubscription.
Return Value
An IActiveSubscription that represents the subscription to the subject.
Remarks
If a data service has been configured that matches the given subject and active
peers within that data service are connected, a request will be made to those peers for the
specified subject.