5.2. .NET Binding for the C++ Messaging Client Examples

This chapter describes the various sample programs that are available to illustrate common Qpid Messaging usage.

Table 5.2. Example : Client - Server

ExampleClient - Server
csharp.example.serverCreates a Receiver and listens for messages. Upon message reception the message content is converted to upper case and forwarded to the received message's ReplyTo address.
csharp.example.clientSends a series of messages to the Server and prints the original message content and the received message content.

Table 5.3. Example : Map Sender – Map Receiver

ExampleMap Sender - Map Receiver
csharp.map.receiverCreates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console.
csharp.map.senderCreates a map message and sends it to map.receiver. The map message contains values for every supported .NET Messaging Binding data type.

Table 5.4. Example : Spout - Drain

ExampleSpout - Drain
csharp.example.spoutSpout is a more complex example of code that generates a series of messages and sends them to peer program Drain. Flexible command line arguments allow the user to specify a variety of message and program options.
csharp.example.drainDrain is a more complex example of code that receives a series of messages and displays their contents on the console.

Table 5.5. Example : Map Callback Sender – Map Callback Receiver

ExampleMap Callback Sender - Map Callback Receiver
csharp.map.callback.receiverCreates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console. This example illustrates the use of the C# managed code callback mechanism provided by .NET Messaging Binding Managed Callback Library.
csharp.map.callback.senderCreates a map message and sends it to map_receiver. The map message contains values for every supported .NET Messaging Binding data type.

Table 5.6. Example - Declare Queues

ExampleDeclare Queues
csharp.example.declare_queuesA program to illustrate creating objects on a broker. This program creates a queue used by spout and drain.

Table 5.7. Example: Direct Sender - Direct Receiver

ExampleDirect Sender - Direct Receiver
csharp.direct.receiverCreates a Receiver and listens for a messages. Upon message reception the message is decoded and displayed on the console.
csharp.direct.sender Creates a series of messages and sends them to csharp.direct.receiver.

Table 5.8. Example: Hello World

ExampleHello World
csharp.example.helloworldA program to send a message and to receive the same message.