Class ExchangeReplyEndPoint
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
exchangeNamestringThe name of the messaging exchange to which the reply will be sent
routingKeystringThe routing key to use for the reply message
includeRequestPayloadInResponseboolA flag indicating whether to include the request payload in the response.
Exceptions
- ArgumentException
Thrown when
exchangeNameis empty or whitespace.