From 077b8b25ab7fac22daf8494feb125cd5c73b95ac Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 9 Jun 2010 11:59:38 +0000 Subject: QPID-2589 Cleanup pass to address function naming, capitalization rules, change Qpid messaging 'list' representation from List<> to Collection<>, some exception cleanup. Patch from Chuck Rolke git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952968 13f79535-47bb-0310-9956-ffa450edef68 --- .../csharp.direct.receiver/csharp.direct.receiver.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver') diff --git a/cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver/csharp.direct.receiver.cs b/cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver/csharp.direct.receiver.cs index 4888023830..98531ebcce 100644 --- a/cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver/csharp.direct.receiver.cs +++ b/cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver/csharp.direct.receiver.cs @@ -23,7 +23,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; -using org.apache.qpid.messaging; +using Org.Apache.Qpid.Messaging; namespace CSharpDirect { @@ -54,20 +54,20 @@ namespace CSharpDirect Connection conn = new Connection(host); - conn.open(); + conn.Open(); - if (!conn.isOpen()) + if (!conn.IsOpen()) { Console.WriteLine("Failed to open connection to host : {0}", host); } else { - Session sess = conn.createSession(); + Session sess = conn.CreateSession(); Duration dura = new Duration(3600000); // wait forever - Receiver rcv = sess.createReceiver(addr); + Receiver rcv = sess.CreateReceiver(addr); Message msg = new Message(""); @@ -75,8 +75,8 @@ namespace CSharpDirect { try { - Message msg2 = rcv.fetch(dura); - Console.WriteLine("Rcvd msg {0} : {1}", i, msg2.getContent()); + Message msg2 = rcv.Fetch(dura); + Console.WriteLine("Rcvd msg {0} : {1}", i, msg2.GetContent()); } catch (Exception e) { @@ -84,7 +84,7 @@ namespace CSharpDirect } } - conn.close(); + conn.Close(); } } } -- cgit v1.2.1