This chapter describes the various sample programs that are available to illustrate common Qpid Messaging usage.
Table 2.2. Example : Client - Server
Example Name | Example Description |
---|---|
csharp.example.server | Creates 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.client | Sends a series of messages to the Server and prints the original message content and the received message content. |
Table 2.3. Example : Map Sender – Map Receiver
Example Name | Example Description |
---|---|
csharp.map.receiver | Creates a Receiver and listens for a map message. Upon message reception the message is decoded and displayed on the console. |
csharp.map.sender | Creates a map message and sends it to map.receiver. The map message contains values for every supported .NET Messaging Binding data type. |
Table 2.4. Example : Spout - Drain
Example Name | Example Description |
---|---|
csharp.example.spout | Spout 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.drain | Drain is a more complex example of code that receives a series of messages and displays their contents on the console. |
Table 2.5. Example : Map Callback Sender – Map Callback Receiver
Example Name | Example Description |
---|---|
csharp.map.callback.receiver | Creates 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.sender | Creates a map message and sends it to map_receiver. The map message contains values for every supported .NET Messaging Binding data type. |
Table 2.6. Example - Declare Queues
Example Name | Example Description |
---|---|
csharp.example.declare_queues | A program to illustrate creating objects on a broker. This program creates a queue used by spout and drain. |
Table 2.7. Example: Direct Sender - Direct Receiver
Example Name | Example Description |
---|---|
csharp.direct.receiver | Creates 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 2.8. Example: Hello World
Example Name | Example Description |
---|---|
csharp.example.helloworld | A program to send a message and to receive the same message. |
Apache Qpid, Messaging built on AMQP; Copyright © 2015 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners