Skip to content

RequestReply

busterwood edited this page Jan 3, 2018 · 2 revisions

Create a RequestReply class to send a message and wait for a reply using a Postman to ensure correct error handling.

Methods:

  • SendRequest() to send a request and wait for a reply
  • SendRequestAsync() to send a request and asynchronously wait for a reply

Properties:

  • TimeToBeReceived is the maximum time allowed for the message to be read from the destination queue before a AcknowledgmentException is raised with MessageClass.ReceiveTimeout.

Why?

This class ensure that the message is delivered to the destination queue and read by the target application within a reasonable time.