Show / Hide Table of Contents

Class MessageQueueEventArgs

Provides data for events raised when a message is queued, processed or otherwise observed by the consumer pipeline.

Inheritance
object
EventArgs
MessageQueueEventArgs
Inherited Members
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CodersRealm.NmsAmqpClient
Assembly: CodersRealm.NmsAmqpClient.dll
Syntax
public sealed class MessageQueueEventArgs : EventArgs

Constructors

MessageQueueEventArgs(IMessage, MessageAction)

Provides data for events raised when a message is queued, processed or otherwise observed by the consumer pipeline.

Declaration
public MessageQueueEventArgs(IMessage message, MessageAction messageAction)
Parameters
Type Name Description
IMessage message

The AMQP message associated with the event.

MessageAction messageAction

The action that occurred for the message (for example: enqueued, dequeued, processed).

Properties

Action

Gets or sets the action that was performed on the message. Event handlers may inspect or modify this value to influence downstream processing.

Declaration
public MessageAction Action { get; set; }
Property Value
Type Description
MessageAction

Message

Gets the AMQP message associated with the event.

Declaration
public IMessage Message { get; }
Property Value
Type Description
IMessage

ResponseMessage

Gets or sets an optional reply message. Handlers may set this property to provide a response message that should be sent back to the message originator.

Declaration
public IMessage? ResponseMessage { get; set; }
Property Value
Type Description
IMessage
Remarks

The consumer or subscriber would need to be configured to be able to send the response message

In this article
Back to top Generated by DocFX