Creates an active subscription to an individual subject.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IActiveSubscription CreateActiveSubscription( string subject, ISubscriptionListener listener )
Public Function CreateActiveSubscription ( _ subject As String, _ listener As ISubscriptionListener _ ) As IActiveSubscription
public: virtual IActiveSubscription^ CreateActiveSubscription( String^ subject, ISubscriptionListener^ listener ) sealed
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.