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 --- .../examples/csharp.map.sender/csharp.map.sender.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.map.sender') 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 2890367599..d1ccc65f2c 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 @@ -21,11 +21,12 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; using System.Text; -using org.apache.qpid.messaging; +using Org.Apache.Qpid.Messaging; -namespace org.apache.qpid.messaging.examples +namespace Org.Apache.Qpid.Messaging.examples { class MapSender { @@ -39,14 +40,14 @@ namespace org.apache.qpid.messaging.examples // Create and open an AMQP connection to the broker URL // Connection connection = new Connection(url); - connection.open(); + connection.Open(); // // Create a session and a sender to the direct exchange using the // routing key "map_example". // - Session session = connection.createSession(); - Sender sender = session.createSender("amq.direct/map_example"); + Session session = connection.CreateSession(); + Sender sender = session.CreateSender("amq.direct/map_example"); // // Create structured content for the message. This example builds a @@ -54,7 +55,7 @@ namespace org.apache.qpid.messaging.examples // Dictionary content = new Dictionary(); Dictionary subMap = new Dictionary(); - List colors = new List(); + Collection colors = new Collection(); content["id"] = 987654321; content["name"] = "Widget"; @@ -76,12 +77,12 @@ namespace org.apache.qpid.messaging.examples // via the sender. // Message message = new Message(content); - sender.send(message, true); + sender.Send(message, true); // // Close the connection. // - connection.close(); + connection.Close(); } } } -- cgit v1.2.1