An application uses a requestor to send a request message and then wait for, and receive, the reply.
Constructor | Description |
---|---|
Requestor | Create a requestor. |
Requestor(ISession sess, IDestination dest);
void Close();
If an application tries to close a requestor that is already closed, the call is ignored.
IMessage Request(IMessage requestMessage);
Send a request message and then wait for, and receive, a reply from the application that receives the request message.
A call to this method blocks until a reply is received or until the session ends, whichever is the sooner.