Subscribed Event
Fired when the component has subscribed to a message destination on the server.
Syntax
public event OnSubscribedHandler OnSubscribed; public delegate void OnSubscribedHandler(object sender, StompSubscribedEventArgs e); public class StompSubscribedEventArgs : EventArgs { public string Id { get; } public string Destination { get; } public bool RequireAcks { get; } }
Public Event OnSubscribed As OnSubscribedHandler Public Delegate Sub OnSubscribedHandler(sender As Object, e As StompSubscribedEventArgs) Public Class StompSubscribedEventArgs Inherits EventArgs Public ReadOnly Property Id As String Public ReadOnly Property Destination As String Public ReadOnly Property RequireAcks As Boolean End Class
Remarks
This event fires each time the component has subscribed to a message destination on the server. The following parameters are available within this event:
- Id: The Id used to identify the subscription.
- Destination: The message destination on the server which the subscription is associated with.
- RequireAcks: Whether messages the component receives as a result of the subscription will require acknowledgments to be sent back to the server.