Table of Contents

Class ExchangeReplyEndPoint

Namespace
CarrotMQ.Core.EndPoints
Assembly
CarrotMQ.Core.dll

Represents a class for messaging exchange endpoints used for the reply messages (reply of ICommand<TCommand, TResponse, TEndPointDefinition> or IQuery<TQuery, TResponse, TEndPointDefinition>)

public sealed class ExchangeReplyEndPoint : ReplyEndPointBase
Inheritance
ExchangeReplyEndPoint
Inherited Members

Constructors

ExchangeReplyEndPoint(string, string?, bool)

Initializes a new instance of the ExchangeReplyEndPoint class.

public ExchangeReplyEndPoint(string exchangeName, string? routingKey = null, bool includeRequestPayloadInResponse = false)

Parameters

exchangeName string

The name of the messaging exchange to which the reply will be sent

routingKey string

The routing key to use for the reply message

includeRequestPayloadInResponse bool

A flag indicating whether to include the request payload in the response.

Exceptions

ArgumentException

Thrown when exchangeName is empty or whitespace.