Show / Hide Table of Contents

Class MessageReceivedContext

Represents the context of a received AMQP message, including the message itself, the action to be taken, and an optional reply message.

Inheritance
object
MessageReceivedContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
public sealed class MessageReceivedContext

Constructors

MessageReceivedContext(IMessage, MessageAction)

Represents the context of a received AMQP message, including the message itself, the action to be taken, and an optional reply message.

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

The AMQP message.

MessageAction messageAction

The action to be taken for the message

Properties

Action

Gets or sets the action that to be performed on the message. 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

ReplyMessage

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

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

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

Tag

The message receiver's tag.

Declaration
public Guid Tag { get; }
Property Value
Type Description
Guid
In this article
Back to top Generated by DocFX