From cff7dc046568b207c9a08dea221427c54706c747 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 25 Jun 2010 17:55:46 +0000 Subject: QPID-2589 - Patch from Chuck Rolke * Convert c-style Get() functions to c#-style properties. * Add powershell helloworld example. * Fix message SetContent to accept byte array or byte array slice. * Re-code Session GetReceiver and GetSender not to malloc new objects but to create the objects on the stack. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958052 13f79535-47bb-0310-9956-ffa450edef68 --- .../csharp.map.callback.receiver/csharp.map.callback.receiver.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver/csharp.map.callback.receiver.cs') diff --git a/cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver/csharp.map.callback.receiver.cs b/cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver/csharp.map.callback.receiver.cs index 2ef78545b6..965b494dc7 100644 --- a/cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver/csharp.map.callback.receiver.cs +++ b/cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver/csharp.map.callback.receiver.cs @@ -93,14 +93,14 @@ namespace Org.Apache.Qpid.Messaging.Examples /// The Message public static void ShowMessage(Message message) { - if ("amqp/map" == message.GetContentType()) + if ("amqp/map" == message.ContentType) { Console.WriteLine("Received a Dictionary"); Dictionary content = new Dictionary(); message.GetContent(content); ShowDictionary(content, 0); } - else if ("amqp/list" == message.GetContentType()) + else if ("amqp/list" == message.ContentType) { Console.WriteLine("Received a List"); Collection content = new Collection(); @@ -148,7 +148,7 @@ namespace Org.Apache.Qpid.Messaging.Examples // // Acknowledge the receipt of all received messages. // - receiver.GetSession().Acknowledge(); + receiver.Session.Acknowledge(); } @@ -241,7 +241,7 @@ namespace Org.Apache.Qpid.Messaging.Examples // // Establish a capacity // - receiver.SetCapacity(100); + receiver.Capacity = 100; // // Wait so many seconds for messages to arrive. -- cgit v1.2.1