diff options
| author | Ted Ross <tross@apache.org> | 2010-06-09 11:59:38 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-06-09 11:59:38 +0000 |
| commit | 077b8b25ab7fac22daf8494feb125cd5c73b95ac (patch) | |
| tree | f0f2d8b17c7ef912d16d3110bc18790006bbd87a /cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver | |
| parent | b6b344dccb18ed44500232e492573244b8a6bdf3 (diff) | |
| download | qpid-python-077b8b25ab7fac22daf8494feb125cd5c73b95ac.tar.gz | |
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
Diffstat (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver')
| -rw-r--r-- | cpp/bindings/qpid/dotnet/examples/csharp.direct.receiver/csharp.direct.receiver.cs | 16 |
1 files changed, 8 insertions, 8 deletions
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();
}
}
}
|
