CMTransport.SendReply

Method

Visual Basic

Overrides Public Sub SendReply (
    ByVal reply As Message,
    ByVal request As Message )

C#

public override void SendReply (
    Message reply,
    Message request );

Purpose

Send a labeled reply message.

Remarks

This convenience call extracts the reply subject of an inbound request message, and sends a labeled outbound reply message to that subject. In addition to the convenience, this call is marginally faster than using separate calls to extract the subject and send the reply.

This method can send a labeled reply to an ordinary message.

This method automatically registers the requesting CM transport, so the reply message is certified.

Parameter

Description

reply

Send this outbound reply message.

request

Send a reply to this inbound request message; extract its reply subject to use as the subject of the outbound reply message.

If this message has a wildcard reply subject, the method produces an error.

Warning 

Give special attention to the order of the arguments to this method. Reversing the inbound and outbound messages can cause an infinite loop, in which the program repeatedly resends the inbound message to itself (and all other recipients).

See Also

CMTransport.Send

CMTransport.SendRequest