diff options
| author | Ted Ross <tross@apache.org> | 2010-08-20 13:58:20 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-08-20 13:58:20 +0000 |
| commit | 5269fc0e04984b2d196d5eaf96e206e034d21184 (patch) | |
| tree | 2c5c273773ce707de712e7691a00003639c0f281 /cpp/bindings/qpid/dotnet/examples/csharp.map.sender | |
| parent | fdfefb5e9721cb85d70a81928044f61b7f48ccf3 (diff) | |
| download | qpid-python-5269fc0e04984b2d196d5eaf96e206e034d21184.tar.gz | |
QPID-2798 - C++ Messaging Client .NET binding fails to clone managed objects correctly
Patch from Chuck Rolke
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@987510 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.map.sender')
| -rw-r--r-- | cpp/bindings/qpid/dotnet/examples/csharp.map.sender/csharp.map.sender.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/bindings/qpid/dotnet/examples/csharp.map.sender/csharp.map.sender.cs b/cpp/bindings/qpid/dotnet/examples/csharp.map.sender/csharp.map.sender.cs index 0763b7455e..c35ddf12f0 100644 --- a/cpp/bindings/qpid/dotnet/examples/csharp.map.sender/csharp.map.sender.cs +++ b/cpp/bindings/qpid/dotnet/examples/csharp.map.sender/csharp.map.sender.cs @@ -39,8 +39,11 @@ namespace Org.Apache.Qpid.Messaging.examples static void Main(string[] args)
{
string url = "amqp:tcp:localhost:5672";
+ string address = "message_queue; {create: always}";
if (args.Length > 0)
url = args[0];
+ if (args.Length > 1)
+ address = args[1];
//
// Create and open an AMQP connection to the broker URL
@@ -49,11 +52,10 @@ namespace Org.Apache.Qpid.Messaging.examples connection.Open();
//
- // Create a session and a sender to the direct exchange using the
- // routing key "map_example".
+ // Create a session and a sender to the direct exchange
//
Session session = connection.CreateSession();
- Sender sender = session.CreateSender("amq.direct/map_example");
+ Sender sender = session.CreateSender(address);
//
// Create structured content for the message. This example builds a
|
