10.26.0

ISessionSendReply Method

Sends a Reply Message (see SetAsReplyMessage() on IMessage). If messageToReply is non-null, the following message properties are copied to replyMessage: ReplyTo is copied to Destination, unless ReplyTo is null.CorrelationId, unless it is null. If messageToReplyTo is null, the application is responsible for setting the Destination and CorrelationId on the replyMessage.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.26.0
C#
ReturnCode SendReply(
	IMessage messageToReplyTo,
	IMessage replyMessage
)

Parameters

messageToReplyTo  IMessage
The received request message to reply to.
replyMessage  IMessage
The reply message to send to the requestor.

Return Value

ReturnCode
The return code from sending the reply.

Exceptions

OperationErrorException Thrown when the operation fails to complete. Possible sub-codes:
ObjectDisposedException Thrown when the session is already disposed (terminal state).
FatalErrorException Thrown when an unrecoverable error occurs.
ArgumentNullException Thrown if replyMessage is null.

See Also