summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2014-06-24 15:31:38 +0000
committerCharles E. Rolke <chug@apache.org>2014-06-24 15:31:38 +0000
commit1cb67f36e63353d19e4b397b6a64f01c3833813b (patch)
treefa62a6e1f42dee451249eb060168d0c23a1e7a0b /qpid/cpp/bindings
parent2e7c94184f1be3b43b96ba6e5a4f828610e09d42 (diff)
downloadqpid-python-1cb67f36e63353d19e4b397b6a64f01c3833813b.tar.gz
PQID-5840: .NET Binding example.server confuses argument indexing
Don't require an unused argument just to keep connectionOptions as arg[2] git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1605112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/examples/csharp.example.server/csharp.example.server.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/bindings/qpid/dotnet/examples/csharp.example.server/csharp.example.server.cs b/qpid/cpp/bindings/qpid/dotnet/examples/csharp.example.server/csharp.example.server.cs
index 1d93649195..7e0b259a23 100644
--- a/qpid/cpp/bindings/qpid/dotnet/examples/csharp.example.server/csharp.example.server.cs
+++ b/qpid/cpp/bindings/qpid/dotnet/examples/csharp.example.server/csharp.example.server.cs
@@ -25,14 +25,14 @@ using Org.Apache.Qpid.Messaging;
namespace Org.Apache.Qpid.Messaging.Examples {
class Server {
static int Main(string[] args) {
+ // Usage: csharp.example.server [url [connectionOptions]]
string url = "amqp:tcp:127.0.0.1:5672";
string connectionOptions = "";
if (args.Length > 0)
url = args[0];
- // address args[1] is not used in this example
- if (args.Length > 2)
- connectionOptions = args[2];
+ if (args.Length > 1)
+ connectionOptions = args[1];
try {
Connection connection = new Connection(url, connectionOptions);