MessageOut Event
Fires when the component sends a message.
Syntax
public event OnMessageOutHandler OnMessageOut; public delegate void OnMessageOutHandler(object sender, AmqpMessageOutEventArgs e); public class AmqpMessageOutEventArgs : EventArgs { public string SessionName { get; } public int SessionIndex { get; } public string LinkName { get; } public int LinkIndex { get; } public string MessageId { get; } }
Public Event OnMessageOut As OnMessageOutHandler Public Delegate Sub OnMessageOutHandler(sender As Object, e As AmqpMessageOutEventArgs) Public Class AmqpMessageOutEventArgs Inherits EventArgs Public ReadOnly Property SessionName As String Public ReadOnly Property SessionIndex As Integer Public ReadOnly Property LinkName As String Public ReadOnly Property LinkIndex As Integer Public ReadOnly Property MessageId As String End Class
Remarks
This event fires whenever the component sends a message.
SessionName is the name of the session the message was transmitted on.
SessionIndex is the index of the session in the Sessions collection property.
LinkName is the name of the link the message was transmitted on.
LinkIndex is the index of the link in the Links collection property.
MessageId is the Id of the message; it may be empty if a message Id was not set.