Discuss this help topic in MsgConnect Forum

DirectTransport class

Properties     Methods     See also    


DirectTransport is used to send messages directly to the messenger or to another instance of messenger running in the same process.

Description

    DirectTransport is a descendant of BaseTransport that places a message to the incoming queue of the messenger OR transfers the message to another messenger that exists in the same process. DirectTransport doesn't make use of Transformer classes.
With DirectTransport you can easily create multithreaded message exchange in your console or service application.

DirectTransport uses special addressing scheme, which is either
<Transport name>:<queue name>
or
<Transport name>:<destination transport ID>|<queue name>

where

  • Transport name - the name of the transport as set by Transport.SetName method. If the transport doesn't have a name, it will respond to it's default name (each transport has it's own default name).
  • transport ID - the ID of the destination transport which you can get from TransportID property.
  • Queue name - this is the name of the queue as it appears in Queue.QueueName property. Queue name should not be empty, otherwise delivery will fail. Even if there is only one queue associated with the messenger, it must have a name. Queue name can contain alphanumeric characters and underscore ("_").
First scheme of addressing is for placing messages to the messenger, to which DirectTransport is linked. Second scheme is used for sending a message to another messenger.

Properties

    Inherited from BaseTransport

Methods

Discuss this help topic in MsgConnect Forum